PHP braindamage

Hanno's Blog

Friday, September 29. 2006

PHP braindamage


Trackbacks

No Trackbacks

Comments
Display comments as (Linear | Threaded)

Well, if that's your only problem with PHP, you're a lucky bastard ;-)
#1 Julian (Homepage) on 2006-09-29 11:06 (Reply)
sizeof returns the size of an array? How counterintuitive! What where they thinking!?
#2 leetcoder on 2006-09-29 11:36 (Reply)
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.
#3 Stuart Longland (Homepage) on 2006-09-30 16:39 (Reply)
I've used count() for this purpose since I can remember. Nevertheless this naming is not very intuitive, that's right.
#4 Martin Wegner (Homepage) on 2006-10-01 00:17 (Reply)
RTFM ;-)
#5 Anonymous on 2006-10-07 16:10 (Reply)
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
#6 yozzy on 2007-04-21 07:24 (Reply)

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 

About

This blog is written by Hanno Böck. Unless noted otherwise, its content is licensed as CC0.

You can find my web page with links to my work as a journalist here.

I am also publishing a newsletter about climate change and decarbonization technologies.

The blog uses the free software Serendipity and is hosted at schokokeks.org.

Hanno on Mastodon | Contact / Imprint | Privacy / Datenschutz