svn: /phpdoc/en/trunk/reference/strings/functions/ strcmp.xml

From: Date: Sun, 25 May 2014 12:43:24 +0000
Subject: svn: /phpdoc/en/trunk/reference/strings/functions/ strcmp.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12492@lists.php.net to get a copy of this message
jeanseb Sun, 25 May 2014 12:43:24 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=333616 Log: Adding example to strcmp (Anonymous contribution) Changed paths: U phpdoc/en/trunk/reference/strings/functions/strcmp.xml Modified: phpdoc/en/trunk/reference/strings/functions/strcmp.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/strcmp.xml 2014-05-25 12:04:18 UTC (rev 333615) +++ phpdoc/en/trunk/reference/strings/functions/strcmp.xml 2014-05-25 12:43:24 UTC (rev 333616) @@ -52,6 +52,26 @@ </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>strcmp</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$var1 = "Hello"; +$var2 = "hello"; +if (strcmp($var1, $var2) !== 0) { + echo '$var1 is not equal to $var2 in a case sensitive string comparison'; +} +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> &reftitle.seealso; <para>

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