Reply to Re: Class in class?

Your name:

Reply:


Posted by Chung Leong on 10/26/05 02:39

Unlike compiled languages like Pascal, you don't need to define
structures. All you have to do is set the properties as though they
exist. Autovivication will take care of the rest.

Example:

<?php

$a->b->c = "Something";
$a->d[] = "Something else";
$a->b->e = "Gowno";

print_r($a);

?>

Result:

stdClass Object
(
[b] => stdClass Object
(
[c] => Something
[e] => Gowno
)

[d] => Array
(
[0] => Something else
)

)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация