[PHP] sizeof

2003-08-12 Thread Pawe³ Kondzior
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 is b:0 ? why mysql_fetch_array don't return false, when quer

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;

[PHP] Sizeof variable variable arrays

2002-01-11 Thread Neil Freeman
Hi there guys, 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 to be getting stored - as following the assignment I have outputted a 'sizeof' command which always

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

[PHP] sizeof($array) with a twist

2001-12-04 Thread René Fournier
I'd like to count the number of rows in a 2 dimensional array that have the same data in their fifth field. Is there a PHP function that does this? Sizeof() appears to lack condition parameters... ...Rene --- René Fournier [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) T

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.

[PHP] sizeof(int)

2001-08-25 Thread Saurabh Kapoor
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. I need a 16 bit (2 byte) storage unit (I use a lot of bitwise operations) Thanx... -- PHP General Mailing List (http://www.php.net

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

2001-04-26 Thread Maxim Maletsky
on [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 9:31 AM To: PHP Subject: [PHP] Sizeof a multi-dimensional array?? Alright, count($x) would give me the number of array elements in $x. But how can I get the count of a multi-dimensional array? Count($x[0]) doesn't seem to work. Th

[PHP] Sizeof a multi-dimensional array??

2001-04-26 Thread Chris Anderson
Alright, count($x) would give me the number of array elements in $x. But how can I get the count of a multi-dimensional array? Count($x[0]) doesn't seem to work. Thanks in advance Chris Anderson aka "Null" PHP Developer / Nulltech PHP-GTK Teste