Login   Register  
PHP Classes
elePHPant
Icontem

Array to Object converter: Turn any array into an object

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Sebastian Potasiak
Name: Sebastian Potasiak <contact>
Classes: 8 packages by
Country: Poland Poland
Age: 21
All time rank: 62517 in Poland Poland
Week rank: 827 Down33 in Poland Poland Down
Innovation award
Innovation award
Nominee: 3x


  Detailed description   Download Download .zip .tar.gz  
This class can be used to turn any array into an object.

It takes an array and assigns the variables of the class with the values of the array entries with the same name.

Array entries with array values are also converted to objects recursively.

  Classes of Sebastian Potasiak  >  Array to Object converter  >  Download Download .zip .tar.gz  >  Support forum Support forum (5)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Array to Object converter
Base name: toobj
Description: Turn any array into an object
Version: 1.0.4
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 1178 users
All time rank: 2950
Week users: 0 users
Week rank: 1463 Equal
 
  Groups   Rate classes User ratings   Applications   Related pages   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
April 2009
Number 2


Prize: One copy of VS.PHP
Since PHP 5, classes can be used to access objects as if they were arrays.

This class takes advantage of that possibility to quickly initialize object variables from data taken from associative arrays.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Insufficient (35%) Good (85%) - Sufficient (70%) - - Insufficient (33%) 2292
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
Google Code project
Class on code.google.com

  Files folder image Files  
File Role Description
Plain text file toobj.php Class Class file
Accessible without login Plain text file example.php Example Example of using class

Download Download all files: toobj.tar.gz toobj.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.