Friday, September 29. 2006PHP braindamageTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Well, if that's your only problem with PHP, you're a lucky bastard ;-)
sizeof returns the size of an array? How counterintuitive! What where they thinking!?
Maybe I'm misunderstanding your request... but sizeof() is another name for count(), which simply returns the number of elements in an array.
I don't think there is a way of getting an abstract storage size of the array though.
I've used count() for this purpose since I can remember. Nevertheless this naming is not very intuitive, that's right.
You must be kidding...
First, how are you with compiler design ? php is a great language, i am a professional C++ programmer, but the guys at php never said (write your C code in a script and name it .php) And surely, it DOES NOT HAVE THE SAME SYNTAX, No no no, Do you see garbage collection in C++ C++ is very fit for a particular use, php is far more fit for another, in many applications you can use both for best results, but indeed php is a great language for its purpose, and the new zend engine is a different story even..... Take care, happy C++ing |
About meYou can find my web page with links to my work as a journalist at https://hboeck.de/.
You may also find my newsletter about climate change and decarbonization technologies interesting. Hanno Böck mail: hanno@hboeck.de Hanno on Mastodon Impressum Show tagged entries |