svn: /phpdoc/en/trunk/language/control-structures/ declare.xml

From: Date: Sat, 18 Jul 2015 06:59:48 +0000
Subject: svn: /phpdoc/en/trunk/language/control-structures/ declare.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13464@lists.php.net to get a copy of this message
pasindu Sat, 18 Jul 2015 06:59:48 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337185 Log: Added declare change log Changed paths: U phpdoc/en/trunk/language/control-structures/declare.xml Modified: phpdoc/en/trunk/language/control-structures/declare.xml =================================================================== --- phpdoc/en/trunk/language/control-structures/declare.xml 2015-07-18 06:40:51 UTC (rev 337184) +++ phpdoc/en/trunk/language/control-structures/declare.xml 2015-07-18 06:59:48 UTC (rev 337185) @@ -18,6 +18,7 @@ </programlisting> </informalexample> </para> + <para> The <literal>directive</literal> section allows the behavior of the <literal>declare</literal> block to @@ -31,12 +32,29 @@ <link linkend="control-structures.declare.encoding">encoding</link> directive). </para> - <note> - <simpara> - The encoding directive was added in PHP 5.3.0 - </simpara> - </note> <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry>Added encoding directive</entry> + </row> + <row> + <entry>7.0.0</entry> + <entry>Added strict_types directive</entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + <para> As directives are handled as the file is being compiled, only literals may be given as directive values. Variables and constants cannot be used. To illustrate:

« previous php.doc.cvs (#13464) next »