[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/strings/functions/_strcmp.xml?=
From:       Jean-Sebastien_Hedde <jeanseb () php ! net>
Date:       2014-05-25 12:43:24
Message-ID: svn-jeanseb-1401021804-333616-406236583 () svn ! php ! net
[Download RAW message or body]

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>



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic