cvs: presentations /slides/migrating strrpos.xml
| From: | Derick Rethans | Date: | Tue, 04 May 2004 07:49:58 +0000 |
| Subject: | cvs: presentations /slides/migrating strrpos.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-986@lists.php.net to get a copy of this message | ||
derick Tue May 4 03:49:58 2004 EDT
Modified files:
/presentations/slides/migrating strrpos.xml
Log:
- Also add the last slide
http://cvs.php.net/diff.php/presentations/slides/migrating/strrpos.xml?r1=1.1&r2=1.2&ty=u
Index: presentations/slides/migrating/strrpos.xml
diff -u presentations/slides/migrating/strrpos.xml:1.1
presentations/slides/migrating/strrpos.xml:1.2
--- presentations/slides/migrating/strrpos.xml:1.1 Sat May 1 15:29:50 2004
+++ presentations/slides/migrating/strrpos.xml Tue May 4 03:49:58 2004
@@ -4,5 +4,23 @@
<break lines="4"/>
<blurb fontsize="4em">
+ strr(i)pos() now searches the full needle inside the haystack, and not
+ only the first character of it.
</blurb>
+
+ <example fontsize="1.3em"><![CDATA[<?php
+ $haystack = "There are now ten more countries in Europe";
+ $needle = "The Netherlands";
+
+ $pos = strrpos($haystack, $needle);
+ var_dump($pos);
+? <]]></example>
+
+ <blurb fontsize="2.5em">PHP 4:</blurb>
+
+ <example fontsize="1em"><![CDATA[int(0)]]></example>
+
+ <blurb fontsize="2.5em">PHP 5:</blurb>
+
+ <example fontsize="1em"><![CDATA[bool(false)]]></example>
</slide>