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
* 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
> -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
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
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;
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
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
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
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.
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
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
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
12 matches
Mail list logo