Erm... I've seen there're some aspects to perform... it fails because
the name of the members is changed during conversion to the array. It
puts the class name using '\0' (0 is a zero, not a caps 'o') character
as separator before member name in private and an '*' in protected.
It's not an unaff
Ok, I've write a function that emulates the Perl's bless one. It works
pretty well.
The idea comes to me when Rob suggest to parse the serialized data. I
think this is better -or at least faster- than parsing all serialized
data to modify object values: Just convert the object to an array,
mod
Hi,
Is it possible to convert an array in an object instance?
I can convert an object in an array as follows:
$Test = new MyClass ();
$TestArray = (array) $Test;
Then I've an array with all members of the object $Test, but it seems
that I cannot simply do:
$TestObject = (MyClass) $TestArray;
To rec
http://www.php.net/manual/en/function.array-count-values.php
- Original Message -
From: "jtjohnston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 24, 2002 10:49 PM
Subject: [PHP] Convert An Array
> http://ccl.flsh.usherb.ca/db/aut
http://ccl.flsh.usherb.ca/db/authors_under_study.php
or
$names = array ("john", "mary", "bill", "mary", "bill", "mary", "bill",
"john", "bill", "john");
1) How do I count the elements of $names to produce:
bill 4
john 3
mary 3
2) How do I store the counted elements into a new array? How d
5 matches
Mail list logo