tags:

views:

68

answers:

1

I've started checking out the source code for PHP. I have just started trying to learn C, and since I have a good working knowledge of PHP, would dissecting typical functions I use daily be of great benefit?

Or is this likely to be too in-depth for a C beginner?

Also, where are most of the functions defined in that source I linked to above?

+5  A: 

Most PHP extensions in the source take advantage of C Macros, which while make it easy to write PHP extensions, create a certain amount of obfuscation in the code. It doesn't look like C code that you would write yourself. In addition, a lot of the code was put in there in band-aid fashion, without proper thought and structure. I would definitely not learn C this way.

blockhead