Re: [PHP] sizeof

2003-08-11 Thread Curt Zirzow
* Thus wrote Pawe³ Kondzior ([EMAIL PROTECTED]): > Hello everybody, i have strange behaviour with sizeof(). > mysql_fetch_array () return for me empty array, when i count this array by > sizeof() it return 1, serialized array is look like this: b:0; check it: > it will print 1 .. why ? > what i

RE: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Ford, Mike [LSS]
> -Original Message- > From: Neil Freeman [mailto:[EMAIL PROTECTED]] > Sent: 11 January 2002 12:03 > > Who's awake today then? :) What I'm trying to do is create variable > variable arrays and then fill these arrays with values. The problem I > have though is that the values don't appear

Re: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Neil Freeman
That's done the trick. More coffee for me I think :) Cheers Jason. Jason Wong wrote: > On Friday 11 January 2002 20:02, Neil Freeman wrote: > > Hi there guys, > > > > Who's awake today then? :) > > Someone isn't :) > > > Here's a snippet of the code. Any ideas guys??? > > > > ... > > //s

Re: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Jason Wong
On Friday 11 January 2002 20:02, Neil Freeman wrote: > Hi there guys, > > Who's awake today then? :) Someone isn't :) > Here's a snippet of the code. Any ideas guys??? > > ... > //store children page_IDs into array for each parent > $str_array = "menu_array_" . $current_parent_page_ID;

Re: [PHP] sizeof($array) with a twist

2001-12-04 Thread Jim
array_count_values() does something like this. It groups together values and tells you how many times they occur in an array... example $array = array( array("foo","bar","rex"), array("foo","bar","zip"), array("foo","bar","zoo"), array("foo","bar","rex")); /* put all e

Re: [PHP] sizeof(int)

2001-08-27 Thread Christian Reiniger
On Saturday 25 August 2001 14:44, Saurabh Kapoor wrote: > I am a C programmer, looking to migrate some code to PHP (Unusual, but > my colleagues request it). > > Can someone tell me the size (in bytes) of the type int in PHP. It's sizeof (int), i.e. the same size as an int in C on that platform.

RE: [PHP] Sizeof a multi-dimensional array??

2001-04-26 Thread Maxim Maletsky
it should. if(is_array($x[0])) $count = count($x[0]); else $count = 'not an array'; Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Chris Anderson [mailto:[E