Home >Backend Development >PHP Tutorial >PHP standard class

PHP standard class

WBOY
WBOYOriginal
2016-07-29 09:02:011224browse

php has built-in standard classes (stdclass)

<code><span><span><?php </span><span>$obj</span> = <span>new</span> stdclass();
<span>echo</span><span>'<pre class="brush:php;toolbar:false">'
; var_dump($obj); $obj->a = 1; $obj->b = 1; var_dump($obj);

PHP standard class
When using type conversion, the standard class is used

<code><span>$arr</span> = <span>array</span>(<span>'a'</span>=><span>1</span>);
var_dump((object)<span>$arr</span>);</code>
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the standard classes of PHP, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn