PHP stdClass: Storing Data in an Object Instead of an Array

August 20th 2009 9:09am

Have you ever seen a scenario where you’re accessing data as an object, such as when you’re using WordPress’s database interface or when you’re parsing XML files with SimpleXML? You have something like echo $result->name. Have you ever wondered how that was done? Using PHP’s stdClass feature you can create an object, and assign data to [...]

From: www.webmaster-source.com


  • php stdclass  php stdclass


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Sitemap