<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;AkICQ3w6fip7ImA9WhRRFE4.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751</id><updated>2011-11-28T05:32:42.216+05:30</updated><category term="php5" /><category term="exam" /><category term="php" /><category term="arrays" /><category term="file writing" /><category term="cloning" /><category term="object" /><category term="engine" /><category term="information" /><category term="functions" /><category term="PDOException" /><category term="errorInfo" /><category term="Streams" /><category term="Compression" /><category term="interface" /><category term="spl" /><category term="certification" /><category term="session" /><category term="Zlib" /><category term="valid" /><category term="code" /><category term="strings" /><category term="zend" /><category term="examination" /><category term="basics" /><category term="ftp" /><category term="sarav" /><category term="database" /><title>Preparing for PHP Zend Certification</title><subtitle type="html">This blog helps you prepare for PHP Zend Certification Exam.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://php-zend.blogspot.com/" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/PreparingForPhpZendCertification" /><feedburner:info uri="preparingforphpzendcertification" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;C0QDR3czfCp7ImA9Wx9XEUg.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-2443307606071485114</id><published>2010-12-10T23:47:00.004+05:30</published><updated>2011-01-04T19:59:36.984+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-04T19:59:36.984+05:30</app:edited><title>Free PHP Test for Zend Certification</title><content type="html">&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;
&lt;ul&gt;Update (04-01-2011) : The test is been take now. &lt;/ul&gt;&lt;br /&gt;
Hello guys,&lt;br /&gt;
&lt;br /&gt;
I have purchased online practice exam voucher&amp;nbsp; before appearing for zend certification and I have some unsed test which I am sharing only 3 test are remaining so which ever gets first would get the test.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to following URL :&lt;br /&gt;
&lt;a href="http://urlsave.net/url-details/3932/2/php%20architect%20-%20The%20PHP%20Magazine%20for%20PHP%20Professionals#content"&gt;PHP Test&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Best of luck !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-2443307606071485114?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mnzA-3Kj3B5gQnn3B610MJBOS8M/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mnzA-3Kj3B5gQnn3B610MJBOS8M/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mnzA-3Kj3B5gQnn3B610MJBOS8M/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mnzA-3Kj3B5gQnn3B610MJBOS8M/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/yAF9X8BeFcw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/2443307606071485114/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2010/12/free-php-test-for-zend-certification.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/2443307606071485114?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/2443307606071485114?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/yAF9X8BeFcw/free-php-test-for-zend-certification.html" title="Free PHP Test for Zend Certification" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2010/12/free-php-test-for-zend-certification.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUERnw6fSp7ImA9WxBWF0k.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-4964890111099042423</id><published>2010-02-10T01:05:00.001+05:30</published><updated>2010-02-10T01:06:47.215+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-10T01:06:47.215+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="arrays" /><title>What is displayed when the following script is executed?</title><content type="html">&lt;pre&gt;define(myvalue, "10");
$myarray[10] = "Dog";
$myarray[] = "Human";
$myarray['myvalue'] = "Cat";
$myarray["Dog"] = "Cat";
print "The value is: ";
print $myarray[myvalue]."\n";
&lt;/pre&gt;&lt;br /&gt;
a) The value is: Dog&lt;br /&gt;
b) The value is: Cat&lt;br /&gt;
c) The value is: Human&lt;br /&gt;
d) The value is: 10&lt;br /&gt;
e) Dog&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;post comments to answer&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-4964890111099042423?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ECeN_GnmsVBKtWd-xcup8HZlLDs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ECeN_GnmsVBKtWd-xcup8HZlLDs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ECeN_GnmsVBKtWd-xcup8HZlLDs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ECeN_GnmsVBKtWd-xcup8HZlLDs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/N1CfgpZT2wk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/4964890111099042423/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2010/02/what-is-displayed-when-following-script.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/4964890111099042423?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/4964890111099042423?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/N1CfgpZT2wk/what-is-displayed-when-following-script.html" title="What is displayed when the following script is executed?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>3</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2010/02/what-is-displayed-when-following-script.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYAQ349fyp7ImA9WxBTF00.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-3626706878778758209</id><published>2009-12-13T17:47:00.001+05:30</published><updated>2009-12-13T17:55:42.067+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-13T17:55:42.067+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="code" /><category scheme="http://www.blogger.com/atom/ns#" term="valid" /><title>Which of the following is not valid PHP code?</title><content type="html">Options :&lt;br /&gt;
&lt;br /&gt;
(a) $_10&lt;br /&gt;
(b) ${“MyVar”}&lt;br /&gt;
(c) &amp;$something&lt;br /&gt;
(d) $10_somethings&lt;br /&gt;
(e) $aVaR&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;comments to answer&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-3626706878778758209?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/56SRW34SgRYZixeDeEObEd799QU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/56SRW34SgRYZixeDeEObEd799QU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/56SRW34SgRYZixeDeEObEd799QU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/56SRW34SgRYZixeDeEObEd799QU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/oZfKjR5cpKk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/3626706878778758209/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/12/which-of-following-is-not-valid-php.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/3626706878778758209?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/3626706878778758209?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/oZfKjR5cpKk/which-of-following-is-not-valid-php.html" title="Which of the following is not valid PHP code?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/12/which-of-following-is-not-valid-php.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU4NSX48fyp7ImA9WxBTFUk.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-7461946866874722671</id><published>2009-12-11T20:36:00.000+05:30</published><updated>2009-12-11T20:36:38.077+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-11T20:36:38.077+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="engine" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title>Choose the selection that best matches the following statements:</title><content type="html">PHP is a _____ scripting language based on the ____ engine. It is primarily used to&lt;br /&gt;
develop dynamic _____ content, although it can be used to generate ____ documents&lt;br /&gt;
(among others) as well.&lt;br /&gt;
&lt;br /&gt;
a) Dynamic, PHP, Database, HTML&lt;br /&gt;
b) Embedded, Zend, HTML, XML&lt;br /&gt;
c) Perl-based, PHP, Web, Static&lt;br /&gt;
d) Embedded, Zend, Docbook, MySQL&lt;br /&gt;
e) Zend-based, PHP, Image, HTML&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;comments to answer&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-7461946866874722671?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eUKxp78ZoKpgWkBm-jp3bH4ex5U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eUKxp78ZoKpgWkBm-jp3bH4ex5U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/eUKxp78ZoKpgWkBm-jp3bH4ex5U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eUKxp78ZoKpgWkBm-jp3bH4ex5U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/P6jrcANzhpY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/7461946866874722671/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/12/choose-selection-that-best-matches.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7461946866874722671?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7461946866874722671?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/P6jrcANzhpY/choose-selection-that-best-matches.html" title="Choose the selection that best matches the following statements:" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/12/choose-selection-that-best-matches.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEICR3c5eip7ImA9WxBTEEw.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-5630702566852758500</id><published>2009-12-05T16:59:00.000+05:30</published><updated>2009-12-05T16:59:26.922+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-05T16:59:26.922+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="object" /><category scheme="http://www.blogger.com/atom/ns#" term="spl" /><category scheme="http://www.blogger.com/atom/ns#" term="interface" /><category scheme="http://www.blogger.com/atom/ns#" term="arrays" /><title>Which two internal PHP interfaces provide functionality which allow you to treat an object like an array?</title><content type="html">Options (select 2) :&lt;br /&gt;
&lt;br /&gt;
a) iteration.&lt;br /&gt;
b) arrayaccess.&lt;br /&gt;
c) objectarray.&lt;br /&gt;
d) iterator.&lt;br /&gt;
e) array.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Comments to answer&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-5630702566852758500?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-jzv6ZbOLVchoxxhw6n0k6lOJh0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-jzv6ZbOLVchoxxhw6n0k6lOJh0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-jzv6ZbOLVchoxxhw6n0k6lOJh0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-jzv6ZbOLVchoxxhw6n0k6lOJh0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/1qXaoUQjSJk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/5630702566852758500/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/12/which-two-internal-php-interfaces.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/5630702566852758500?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/5630702566852758500?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/1qXaoUQjSJk/which-two-internal-php-interfaces.html" title="Which two internal PHP interfaces provide functionality which allow you to treat an object like an array?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/12/which-two-internal-php-interfaces.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkIARnwyeip7ImA9WxNaGEg.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-7047644816303500076</id><published>2009-12-03T21:04:00.001+05:30</published><updated>2009-12-03T21:05:47.292+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-03T21:05:47.292+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="session" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><title>If you would like to store your session in the database, you would do which of the following?</title><content type="html">Options : &lt;br /&gt;
&lt;br /&gt;
a) It requires a custom PHP extension to change the session handler.&lt;br /&gt;
b) Implement the session_set_save_handler() function.&lt;br /&gt;
c) Create functions for each session handling step and use session_set_save_handler() to override PHP's internal settings.&lt;br /&gt;
d) Configure the session.save_handler INI directive to your session class.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Post comments to answer&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-7047644816303500076?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sHaa3oi2glR4ShuepVDV21y2QX0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sHaa3oi2glR4ShuepVDV21y2QX0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sHaa3oi2glR4ShuepVDV21y2QX0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sHaa3oi2glR4ShuepVDV21y2QX0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/CnoVOteKTjI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/7047644816303500076/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/12/if-you-would-like-to-store-your-session.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7047644816303500076?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7047644816303500076?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/CnoVOteKTjI/if-you-would-like-to-store-your-session.html" title="If you would like to store your session in the database, you would do which of the following?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/12/if-you-would-like-to-store-your-session.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE4ERn06fSp7ImA9WxNaFE4.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-289034162161469833</id><published>2009-11-28T23:58:00.000+05:30</published><updated>2009-11-28T23:58:27.315+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-28T23:58:27.315+05:30</app:edited><title>What is the output of the following PHP script?</title><content type="html">&lt;pre&gt;$a = 1;
$b = 2.5;
$c = 0xFF;

$d = $b + $c;
$e = $d * $b;
$f = ($d + $e) % $a;

print($f + $e);
&lt;/pre&gt;&lt;br /&gt;
Options :&lt;br /&gt;
&lt;br /&gt;
a) 643.75&lt;br /&gt;
b) 432&lt;br /&gt;
c) 643&lt;br /&gt;
d) 257&lt;br /&gt;
e) 432.75 &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Comments to answer&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-289034162161469833?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CIfDtVCU_JFaYZfd39w2QtjiQkM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CIfDtVCU_JFaYZfd39w2QtjiQkM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CIfDtVCU_JFaYZfd39w2QtjiQkM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CIfDtVCU_JFaYZfd39w2QtjiQkM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/GX0GvfclqPM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/289034162161469833/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/what-is-output-of-following-php-script.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/289034162161469833?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/289034162161469833?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/GX0GvfclqPM/what-is-output-of-following-php-script.html" title="What is the output of the following PHP script?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/what-is-output-of-following-php-script.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUQHSHk5cSp7ImA9WxNaEUs.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-2653860301464973103</id><published>2009-11-25T22:11:00.001+05:30</published><updated>2009-11-25T22:12:19.729+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-25T22:12:19.729+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ftp" /><category scheme="http://www.blogger.com/atom/ns#" term="file writing" /><title>When opening a file in writing mode using the FTP handler what must be done so that the file will still be written to the server in the event it previously exists?</title><content type="html">Options:&lt;br /&gt;
&lt;br /&gt;
a) Provide a context for fopen() using stream_context_create().&lt;br /&gt;
b) You must delete the file first before uploading a new file.&lt;br /&gt;
c) Configure this behavior in the php.ini file using the ftp.overwrite directive.&lt;br /&gt;
d) Open the file using the 'w+' mode.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
comments to answer&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-2653860301464973103?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EgRyEqOFbDFduWdyQI3tZsKqMuo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EgRyEqOFbDFduWdyQI3tZsKqMuo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EgRyEqOFbDFduWdyQI3tZsKqMuo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EgRyEqOFbDFduWdyQI3tZsKqMuo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/xHGutFNzj6s" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/2653860301464973103/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/when-opening-file-in-writing-mode-using.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/2653860301464973103?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/2653860301464973103?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/xHGutFNzj6s/when-opening-file-in-writing-mode-using.html" title="When opening a file in writing mode using the FTP handler what must be done so that the file will still be written to the server in the event it previously exists?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/when-opening-file-in-writing-mode-using.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEQMQHczfCp7ImA9WxNbGUs.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-4286720285390206496</id><published>2009-11-23T13:16:00.000+05:30</published><updated>2009-11-23T13:16:21.984+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-23T13:16:21.984+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="arrays" /><title>The following code block produces which output array?</title><content type="html">&lt;pre&gt;$a = array(1 =&gt; "A", "B", "C");
$a[1] = "A"; $a[] = "B"; $a[] = "C";

print_r($a);
&lt;/pre&gt;&lt;br /&gt;
a) A =&gt; 1, B =&gt; 2, C =&gt; 3, B =&gt; 4, C =&gt; 5&lt;br /&gt;
b) A =&gt; 1, B =&gt; 2, C =&gt; 3&lt;br /&gt;
c) 1 =&gt; A, 2 =&gt; B, 3 =&gt; C&lt;br /&gt;
d) 0 =&gt; A, 1 =&gt; B, 2 =&gt; C&lt;br /&gt;
e) 1 =&gt; A, 2 =&gt; B, 3 =&gt; C, 4 =&gt; B, 5 =&gt; C &lt;br /&gt;
&lt;br /&gt;
References :&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://php.net/manual/en/language.types.array.php"&gt;PHP Arrays&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Comments to answer&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-4286720285390206496?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TNNr1ghuAqfTY94OSibp3dRyy44/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TNNr1ghuAqfTY94OSibp3dRyy44/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TNNr1ghuAqfTY94OSibp3dRyy44/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TNNr1ghuAqfTY94OSibp3dRyy44/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/HmlAJhQJc0A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/4286720285390206496/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/following-code-block-produces-which.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/4286720285390206496?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/4286720285390206496?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/HmlAJhQJc0A/following-code-block-produces-which.html" title="The following code block produces which output array?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/following-code-block-produces-which.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEACRHYyeip7ImA9WxNbGU0.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-2564346676730831799</id><published>2009-11-22T21:49:00.000+05:30</published><updated>2009-11-22T21:49:25.892+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-22T21:49:25.892+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="object" /><category scheme="http://www.blogger.com/atom/ns#" term="cloning" /><category scheme="http://www.blogger.com/atom/ns#" term="php5" /><title>What is wrong with the following code?</title><content type="html">&lt;pre&gt;function duplicate($obj) {
 $newObj = $obj;
 return $newObj;
}

$a = new MyClass ( );

$a_copy = duplicate ( $a );

$a-&gt;setValue ( 10 );
$a_copy-&gt;setValue ( 20 );
&lt;/pre&gt;&lt;br /&gt;
Options :&lt;br /&gt;
&lt;br /&gt;
a) You must use return &amp;$newObj instead.&lt;br /&gt;
b) There is nothing wrong with this code.&lt;br /&gt;
c) duplicate() must accept its parameter by reference.&lt;br /&gt;
d) You must use the clone operator to make a copy of an object.&lt;br /&gt;
e) duplicate() must return a reference.&lt;br /&gt;
&lt;br /&gt;
References :&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.php.net/manual/en/language.oop5.cloning.php"&gt;Object Cloning&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;comments to answer&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-2564346676730831799?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tI3JBYr0yA6Z67zh1CCtJSDyvKg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tI3JBYr0yA6Z67zh1CCtJSDyvKg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tI3JBYr0yA6Z67zh1CCtJSDyvKg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tI3JBYr0yA6Z67zh1CCtJSDyvKg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/mvPEKBVPuWM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/2564346676730831799/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/what-is-wrong-with-following-code.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/2564346676730831799?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/2564346676730831799?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/mvPEKBVPuWM/what-is-wrong-with-following-code.html" title="What is wrong with the following code?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/what-is-wrong-with-following-code.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08HQ346cSp7ImA9WxNbF0o.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-4895590399336692287</id><published>2009-11-21T08:15:00.001+05:30</published><updated>2009-11-21T08:20:32.019+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T08:20:32.019+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Compression" /><category scheme="http://www.blogger.com/atom/ns#" term="Zlib" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><category scheme="http://www.blogger.com/atom/ns#" term="Streams" /><title>What should be replaced in the string ??????? below to open the archive myarchive.gz located in the document root of the www.example.com server and decompress it?</title><content type="html">&lt;pre&gt;$file = '???????';

$fr = fopen($file, 'rb');

$data = "";
while(!feof($fr)) {
 $data .= fgets($fr, 1024);
}

fclose($fr);
&lt;/pre&gt;&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
a) compress.zlib://{$http}www.example.com/myarchive.gz&lt;br /&gt;
b) compress.zlib://http://www.example.com/myarchive.gz&lt;br /&gt;
c) compress.http://www.example.com/myarchive.gz&lt;br /&gt;
d) compress.http.zlib://www.example.com/myarchive.gz&lt;br /&gt;
e) compress.zlib://myarchive.gz &lt;br /&gt;
&lt;br /&gt;
Reference :&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.phpbuilder.com/manual/en/wrappers.compression.php"&gt;Compression Streams&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.php.net/manual/en/ref.zlib.php#37482"&gt;Zlib Functions&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Comments to answer&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-4895590399336692287?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/D4h-pJ1kUycghe6gvrzKqP7niBo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D4h-pJ1kUycghe6gvrzKqP7niBo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/D4h-pJ1kUycghe6gvrzKqP7niBo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D4h-pJ1kUycghe6gvrzKqP7niBo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/VLj4FXWu6MI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/4895590399336692287/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/what-should-be-replaced-in-string-below.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/4895590399336692287?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/4895590399336692287?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/VLj4FXWu6MI/what-should-be-replaced-in-string-below.html" title="What should be replaced in the string ??????? below to open the archive myarchive.gz located in the document root of the www.example.com server and decompress it?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/what-should-be-replaced-in-string-below.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0ABR3Y5eSp7ImA9WxNbF0o.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-9213784017299283343</id><published>2009-11-18T09:33:00.003+05:30</published><updated>2009-11-21T08:19:16.821+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T08:19:16.821+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="errorInfo" /><category scheme="http://www.blogger.com/atom/ns#" term="PDOException" /><title>In the event of a PDOException, $info is set with the contents of the $errorInfo property of the exception. Which of the following are accurate descriptions of the contents?</title><content type="html">Options (choose 3) :&lt;br /&gt;
a.$info[1] is the database-specific error code.&lt;br /&gt;
b.$info[2] is the database-specific error message.&lt;br /&gt;
c.$info[1] is the unified error code.&lt;br /&gt;
d.$info[0] is the unified error code.&lt;br /&gt;
e.$info[0] Is the Database-specific error message.&lt;br /&gt;
&lt;br /&gt;
Reference :&lt;br /&gt;
&lt;a href="http://www.php.net/manual/en/pdo.errorinfo.php"&gt;PDO::errorInfo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
PDO::errorInfo —  Fetch extended error information associated with the last operation on the database handle&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Comments to answer&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-9213784017299283343?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hBexypbKHRGoO-bKEW4LWKA5aWI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hBexypbKHRGoO-bKEW4LWKA5aWI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hBexypbKHRGoO-bKEW4LWKA5aWI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hBexypbKHRGoO-bKEW4LWKA5aWI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/HeExYeTNOI4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/9213784017299283343/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/in-event-of-pdoexception-info-is-set.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/9213784017299283343?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/9213784017299283343?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/HeExYeTNOI4/in-event-of-pdoexception-info-is-set.html" title="In the event of a PDOException, $info is set with the contents of the $errorInfo property of the exception. Which of the following are accurate descriptions of the contents?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/in-event-of-pdoexception-info-is-set.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYHRXc5fCp7ImA9WxNbEUo.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-429325981945354746</id><published>2009-11-14T11:25:00.000+05:30</published><updated>2009-11-14T11:25:34.924+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-14T11:25:34.924+05:30</app:edited><title>When using a function such as strip_tags, are markup-based attacks still possible?</title><content type="html">Yes it is possible because if some tags are allowed using the second parameter, this function does not allow to strip attributes within the allowed tags and hence should not be used against XSS vulnerabilities.&lt;br /&gt;
&lt;br /&gt;
One can still execute javascript by 2 means:&lt;br /&gt;
- by inserting attributes that typically accept javascript&lt;br /&gt;
  &gt;&gt; onClick="alert('XSS');"&lt;br /&gt;
- by using styles&lt;br /&gt;
  &gt;&gt; style="width:expression(alert('XSS'));" (works on IE7 and probably other versions)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-429325981945354746?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/q71M-wFx7JkElhJl-d4Jua6IaF4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q71M-wFx7JkElhJl-d4Jua6IaF4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/q71M-wFx7JkElhJl-d4Jua6IaF4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q71M-wFx7JkElhJl-d4Jua6IaF4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/0NbHJDMZZZ0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/429325981945354746/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/when-using-function-such-as-striptags.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/429325981945354746?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/429325981945354746?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/0NbHJDMZZZ0/when-using-function-such-as-striptags.html" title="When using a function such as strip_tags, are markup-based attacks still possible?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/when-using-function-such-as-striptags.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8CRX09eip7ImA9WxNbEUo.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-4745627096893202712</id><published>2009-11-14T11:19:00.001+05:30</published><updated>2009-11-14T11:21:04.362+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-14T11:21:04.362+05:30</app:edited><title>Exception Handling: What is the output of the following code ?</title><content type="html">&lt;pre&gt;class MyException extends Exception {
}
class AnotherException extends MyException {
}

class Foo {
 public function something() {
  throw new AnotherException ( );
 }
 public function somethingElse() {
  throw new MyException ( );
 }
}

$a = new Foo ( );

try {
 try {
  $a-&gt;something ();
 } catch ( AnotherException $e ) {
  $a-&gt;somethingElse ();
 } catch ( MyException $e ) {
  print "Caught Exception";
 }
} catch ( Exception $e ) {
 print "Didn't catch the Exception!";
}
&lt;/pre&gt;&lt;br /&gt;
key point to note in here is exception thrown in catch block wont be caught if its not surrounded by try block.&lt;br /&gt;
&lt;br /&gt;
comments to answer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-4745627096893202712?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/C03_bR65uvvEKbbdgxzjhordarM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/C03_bR65uvvEKbbdgxzjhordarM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/C03_bR65uvvEKbbdgxzjhordarM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/C03_bR65uvvEKbbdgxzjhordarM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/af8C_yQ_-po" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/4745627096893202712/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/what-is-output-of-following-code.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/4745627096893202712?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/4745627096893202712?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/af8C_yQ_-po/what-is-output-of-following-code.html" title="Exception Handling: What is the output of the following code ?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/what-is-output-of-following-code.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYHSHo-cCp7ImA9WxNbEUo.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-9167884817281527940</id><published>2009-11-14T11:08:00.002+05:30</published><updated>2009-11-14T11:08:59.458+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-14T11:08:59.458+05:30</app:edited><title>Which of the following is not valid syntax for creating a new array key?</title><content type="html">Options :&lt;br /&gt;
&lt;br /&gt;
a) $a[] = $value;&lt;br /&gt;
b) $a{} = $value;&lt;br /&gt;
c) $a{0} = $value;&lt;br /&gt;
d) $a[$b=0] = $value;&lt;br /&gt;
&lt;br /&gt;
comments to answer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-9167884817281527940?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QRtYBo0ELGLazT9ns-gdhoHcc_o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QRtYBo0ELGLazT9ns-gdhoHcc_o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QRtYBo0ELGLazT9ns-gdhoHcc_o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QRtYBo0ELGLazT9ns-gdhoHcc_o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/4u75Qg-ga9M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/9167884817281527940/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/which-of-following-is-not-valid-syntax.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/9167884817281527940?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/9167884817281527940?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/4u75Qg-ga9M/which-of-following-is-not-valid-syntax.html" title="Which of the following is not valid syntax for creating a new array key?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>3</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/which-of-following-is-not-valid-syntax.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUcFRXozfip7ImA9WxNbEUo.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-7106563129124731404</id><published>2009-11-14T11:06:00.000+05:30</published><updated>2009-11-14T11:06:54.486+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-14T11:06:54.486+05:30</app:edited><title>Which php.ini directive should be disabled to prevent the execution of a remote PHP script via an include or require construct?</title><content type="html">options :&lt;br /&gt;
&lt;br /&gt;
1. &lt;a href="http://in.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen"&gt;allow_url_fopen&lt;/a&gt;&lt;br /&gt;
2. &lt;a href="http://in.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include"&gt;allow_url_include&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
comments to answer.&lt;br /&gt;
&lt;br /&gt;
Also, In the real case scenarios only disabling the directives is not sufficient to prevent the execution of a remote PHP script via an include or require construct one has to validate all the data coming from user, because quite often it is possible for an attacker to get PHP code into files on the server (sessiondata, fileupload, logfiles,...), so it boils down to secure coding practices.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-7106563129124731404?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/qHBUCrw9mwXFXcOxd174fn29qU8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qHBUCrw9mwXFXcOxd174fn29qU8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/qHBUCrw9mwXFXcOxd174fn29qU8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qHBUCrw9mwXFXcOxd174fn29qU8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/t74EQZmY9-Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/7106563129124731404/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/which-phpini-directive-should-be.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7106563129124731404?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7106563129124731404?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/t74EQZmY9-Y/which-phpini-directive-should-be.html" title="Which php.ini directive should be disabled to prevent the execution of a remote PHP script via an include or require construct?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/which-phpini-directive-should-be.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYNRns9eyp7ImA9WxNbEU0.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-7988188139310384208</id><published>2009-11-13T14:19:00.000+05:30</published><updated>2009-11-13T14:19:57.563+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-13T14:19:57.563+05:30</app:edited><title>What would you replace ??????? with, below to make the string Hello, World ! be displayed ?</title><content type="html">&lt;pre&gt;function myfunction(){
    ????????
    print $string;
}

myfunction("Hello, World!");
&lt;/pre&gt;&lt;br /&gt;
Options :&lt;br /&gt;
&lt;br /&gt;
1. There is no way to do this.&lt;br /&gt;
2. $string = $argv[1];&lt;br /&gt;
3. $string = $_ARGV[0];&lt;br /&gt;
4. list($string) = func_get_args();&lt;br /&gt;
5. $string = get_function_args()&lt;br /&gt;
&lt;br /&gt;
Comments to answer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-7988188139310384208?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tKCvN5yDcWuwoEz_AxIbtKM3A2Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tKCvN5yDcWuwoEz_AxIbtKM3A2Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tKCvN5yDcWuwoEz_AxIbtKM3A2Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tKCvN5yDcWuwoEz_AxIbtKM3A2Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/vCI9YqqTGJk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/7988188139310384208/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/what-would-you-replace-with-below-to.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7988188139310384208?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7988188139310384208?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/vCI9YqqTGJk/what-would-you-replace-with-below-to.html" title="What would you replace ??????? with, below to make the string Hello, World ! be displayed ?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/what-would-you-replace-with-below-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0ICRXo6eCp7ImA9WxNbEU0.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-7025754621117727231</id><published>2009-11-13T14:07:00.002+05:30</published><updated>2009-11-13T14:09:24.410+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-13T14:09:24.410+05:30</app:edited><title>Which of the following list is not an appropriate use of an array?</title><content type="html">Options :&lt;br /&gt;
&lt;br /&gt;
1. As a list.&lt;br /&gt;
2. All of these uses are valid.&lt;br /&gt;
3. As a Lookup Table.&lt;br /&gt;
4. A stack.&lt;br /&gt;
5. As a hash table.&lt;br /&gt;
&lt;br /&gt;
Comments to discuss.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-7025754621117727231?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UC1Si8HSgNcgZsgdUJzklDFaFOE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UC1Si8HSgNcgZsgdUJzklDFaFOE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UC1Si8HSgNcgZsgdUJzklDFaFOE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UC1Si8HSgNcgZsgdUJzklDFaFOE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/WnlERTNXJTg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/7025754621117727231/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/which-of-following-list-is-not.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7025754621117727231?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7025754621117727231?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/WnlERTNXJTg/which-of-following-list-is-not.html" title="Which of the following list is not an appropriate use of an array?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/which-of-following-list-is-not.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkQDSH49cSp7ImA9WxNbEU0.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-2411793613770444918</id><published>2009-11-13T12:58:00.005+05:30</published><updated>2009-11-13T13:49:39.069+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-13T13:49:39.069+05:30</app:edited><title>The following snippet is an example of which design pattern?</title><content type="html">&lt;pre&gt;class MyClass{

 static private $_instance;
 
 static public function getInstance(){
  
  if(!self::$_instance instanceof self){
   self::$_instance= new self();
  }
  
  return self::$_instance;
 }
}

&lt;/pre&gt;&lt;br /&gt;
Options :&lt;br /&gt;
&lt;br /&gt;
1. Singleton&lt;br /&gt;
2. Factory&lt;br /&gt;
3. MVC&lt;br /&gt;
4. Validator&lt;br /&gt;
&lt;br /&gt;
post comments to answer.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- AddThis Button BEGIN --&gt;&lt;br /&gt;
&lt;div&gt;&lt;a expr:addthis:title='data:post.title' expr:addthis:url='data:post.url' class='addthis_button'&gt;&lt;img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/&gt;&lt;/a&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4afd0d335e46c631"&gt;&lt;/script&gt;&lt;/div&gt;&lt;!-- AddThis Button END --&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-2411793613770444918?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ai0mqRL5LRzF8Uwh81RcqfpApic/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ai0mqRL5LRzF8Uwh81RcqfpApic/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ai0mqRL5LRzF8Uwh81RcqfpApic/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ai0mqRL5LRzF8Uwh81RcqfpApic/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/3u5120urhWE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/2411793613770444918/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/11/following-snippet-is-example-of-which.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/2411793613770444918?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/2411793613770444918?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/3u5120urhWE/following-snippet-is-example-of-which.html" title="The following snippet is an example of which design pattern?" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/11/following-snippet-is-example-of-which.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEMBSXo-cCp7ImA9WxNbFUw.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-5070052143617300730</id><published>2009-09-07T18:51:00.003+05:30</published><updated>2009-11-18T08:17:38.458+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-18T08:17:38.458+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="strings" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title>PHP Strings</title><content type="html">- they are the most commonly used variable type in PHP.&lt;br /&gt;
- Within strings many characters take a special meaning, matching quotes, back slashes, octal numbers, variables, if you wish to use them as they are you must escape them with the \ character. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Escape Sequences: &lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
– \n linefeed (LF or 0x0A (10) in ASCII)&lt;br /&gt;
– \r carriage return (CR or 0x0D (13) in ASCII)&lt;br /&gt;
– \t horizontal tab (HT or 0x09 (9) in ASCII)&lt;br /&gt;
– \\ backslash&lt;br /&gt;
– \$ dollar sign&lt;br /&gt;
– \" double-quote&lt;br /&gt;
– \[0-7]{1,3} the sequence of characters matching the regular expression is a character in octal notation&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Strings Matching: &lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
- strcmp() – Binary safe string comparison. Returns &lt; 0
if str1 is less than str2 ; &gt; 0 if str1 is greater than str2 , and 0 if they are equal.&lt;br /&gt;
- strcasecmp() – Case insensitive version of strcmp()&lt;br /&gt;
– Note 0 == FALSE and 0 !== FALSE &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Strings Extracting: &lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
- substr() – Used to extract a portion of a string &lt;br /&gt;
&lt;pre&gt;$string = "I am the very model of the modern major general";
echo substr($string, 2);
//am the very model of the modern major general
echo substr($string, 9, 10); //very model
echo substr($string, -7); //general
echo substr($string, 5, -8);//the very model of the modern major&lt;/pre&gt;&lt;b&gt;Extracting – Array Syntax&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;$string = "I am the very model of the modern
major general";
echo $string[5]; //t, the t from the
echo $string[0]; //I
echo $string{2}; //a, the a from am
exit;&lt;/pre&gt;&lt;br /&gt;
- The {} syntax is depreciated in PHP 5.1 and will produce a warning under E_STRICT &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Formatting&lt;/strong&gt; - number_format() – By default formats a number with the comma as the thousands separator, and no decimal&lt;br /&gt;
&lt;pre&gt;echo number_format("1234567.89");
// 1,234,568
echo number_format("9876543.698", 3, ",", " ");
// Shows 9 876 543,698&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;money_format()&lt;/strong&gt; - Only available when the underlying c library strfmon() is available (not windows)&lt;br /&gt;
&lt;pre&gt;$number = 1234.56;
setlocale(LC_MONETARY, 'en_US');
echo money_format('%i', $number) . "\n";
// USD 1,234.56
setlocale(LC_MONETARY, 'it_IT');
echo money_format('%.2n', $number) . "\n";
// L. 1.234,56&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Printf family&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
- Part of a family: print(), sprintf(), vprintf(), sscanf(), fscanf(). All of which accept the same formatting options 10&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Printf formatting specifiers:&lt;/strong&gt; - % - a literal percent character. No argument is required.&lt;br /&gt;
- b - the argument is treated as an integer, and presented as a binary number.&lt;br /&gt;
- c - the argument is treated as an integer, and presented as the character with that ASCII value.&lt;br /&gt;
- d - the argument is treated as an integer, and presented as a (signed) decimal number.&lt;br /&gt;
- e - the argument is treated as scientific notation (e.g. 1.2e+2).&lt;br /&gt;
- u - the argument is treated as an integer, and presented as an unsigned decimal number.&lt;br /&gt;
- f - the argument is treated as a float, and presented as a floating-point number (locale aware).&lt;br /&gt;
- F - the argument is treated as a float, and presented as a floating-point number (non-locale aware). Available since PHP 4.3.10 and PHP 5.0.3.&lt;br /&gt;
- o - the argument is treated as an integer, and presented as an octal number.&lt;br /&gt;
- s - the argument is treated as and presented as a string.&lt;br /&gt;
- x - the argument is treated as an integer and presented as a hexadecimal number (with lowercase letters).&lt;br /&gt;
- X - the argument is treated as an integer and presented as a hexadecimal number (with uppercase letters).&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Printf examples&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;$number = 1234.5678;
printf("%d", $number); //1234
printf("%f", $number);
//1234.567800 (6 Decimal Places)
printf("%8d", $number); // 1234
printf("%'x8d", $number); //xxxx1234
printf("%8.2f", $number); //1234.57
printf("%8.2f", $number); //1234.57&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Replacement&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;$string = "I want steak with a side of salad";
echo str_replace("salad", "fries", $string);
//I want steak with a side of fries
echo str_replace(array("steak", "salad"), array
("burger", "taco"), $string);
//I want burger with a side of taco
echo str_replace(array("steak", "burger"), array
("burger", "taco"), $string);
//I want taco with a side of salad
&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;PCRE&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
- PCRE – Perl Compatible Regular Expressions, PHP’s most popular RegEx engine&lt;br /&gt;
- Technically you can turn it off, no one does&lt;br /&gt;
- Exceedingly powerful, not always the fastest choice, if you can use a built in function do so.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;PCRE – Meta Characters&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
- \d Digits 0-9&lt;br /&gt;
- \D Anything not a digit&lt;br /&gt;
- \w Any alphanumeric character or an underscore (_)&lt;br /&gt;
- \W Anything not an alphanumeric character or an underscore&lt;br /&gt;
- \s Any whitespace (spaces, tabs, newlines)&lt;br /&gt;
- \S Any non-whitespace character&lt;br /&gt;
- . Any character except for a newline&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;PCRE – Meta Characters&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
- ? Occurs 0 or 1 time&lt;br /&gt;
- * Occurs 0 or more times&lt;br /&gt;
- + Occurs 1 or more times&lt;br /&gt;
- {n} Occurs exactly n times&lt;br /&gt;
- {,n} Occurs at most n times&lt;br /&gt;
- {m,} Occurs m or more times&lt;br /&gt;
- {m,n} Occurs between m and n times&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;PCRE – Pattern Modifiers&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
The way the PCRE engine works can be modified by modifiers placed after the terminating character&lt;br /&gt;
– i – Case insensitive search&lt;br /&gt;
– m – Multiline, $ and ^ will match at newlines&lt;br /&gt;
– s – Makes the dot metacharacter match newlines&lt;br /&gt;
– x – Allows for commenting&lt;br /&gt;
– U – Makes the engine un-greedy&lt;br /&gt;
– u – Turns on UTF8 support&lt;br /&gt;
– e – Matched with preg_replace() allows you to call&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;preg_match()&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
- preg_match() – Returns the number of matches found by a given search string under this format, also capable of returning the match:&lt;br /&gt;
&lt;pre&gt;$string = "124 abc";
var_dump(preg_match("/\w\s
\w/", $string)); // 1 (matches);
var_dump(preg_match("/\d{3}\s[a-z]
{3}/", $string)) // 1 (matches)&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;preg_replace()&lt;/strong&gt; - Searches the subject for matches to a given pattern replaced with the given replacement text&lt;br /&gt;
&lt;pre&gt;$pattern = "!(java|ruby)!i";
$string = "I love programming in Java, I als
o love ruby!";
echo preg_replace
($pattern, "php", $string);
- //I love programming in php, I also love php!

$bbcode = "Hi !!Paul!!, how are !!you!! today\n";
echo preg_replace("/!!(.+)!!/e", "strtoupper('\
\1')", $bbcode);
//Hi PAUL!!, HOW ARE !!YOU today
echo preg_replace("/!!(.+)!!/eU", "strtoupper('
\1')", $bbcode);
//Hi PAUL, how are YOU today
&lt;/pre&gt;&lt;br /&gt;
- Security concerns, escape input&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;preg_split()&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
- preg_split() allows you to split strings based on more complex rules:&lt;br /&gt;
&lt;pre&gt;$ws = "Too   much  white   space";
print_r(preg_split("!\s+!", $ws));
Array(
[0] =&gt; Too
[1] =&gt; much
[2] =&gt; white
[3] =&gt; space 
)&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Strings &amp; Patterns Conclusion&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
- Escaping, worth thinking about&lt;br /&gt;
- Heredoc vs “ vs ‘&lt;br /&gt;
- printf() and its family&lt;br /&gt;
- PCRE&lt;br /&gt;
– meta characters&lt;br /&gt;
– pattern modifiers&lt;br /&gt;
– functions&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Questions for further study&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
- Develop a regular expression to pull email addresses from a web page using the standard paul at preinheimer dot com format.&lt;br /&gt;
- Experiment with the printf() modifiers and research the related functions&lt;br /&gt;
- There are many string functions in PHP experiment and research a few&lt;br /&gt;
- Try using the various escape sequences with all three quote types (single, double, heredoc)&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://us2.php.net/manual/en/book.strings.php" &gt;read more&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;!-- AddThis Button BEGIN --&gt;&lt;br /&gt;
&lt;div&gt;&lt;a expr:addthis:title='data:post.title' expr:addthis:url='data:post.url' class='addthis_button'&gt;&lt;img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/&gt;&lt;/a&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4afd0d335e46c631"&gt;&lt;/script&gt;&lt;/div&gt;&lt;!-- AddThis Button END --&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-5070052143617300730?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/vBbcX-1KruViJVz_WTg606eNe54/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vBbcX-1KruViJVz_WTg606eNe54/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/vBbcX-1KruViJVz_WTg606eNe54/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vBbcX-1KruViJVz_WTg606eNe54/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/Ow18xBLbM64" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/5070052143617300730/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/09/strings.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/5070052143617300730?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/5070052143617300730?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/Ow18xBLbM64/strings.html" title="PHP Strings" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/09/strings.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEMFQHwyeyp7ImA9WxNbFUw.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-1498774789885652809</id><published>2009-09-02T12:04:00.004+05:30</published><updated>2009-11-18T08:16:51.293+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-18T08:16:51.293+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sarav" /><category scheme="http://www.blogger.com/atom/ns#" term="examination" /><category scheme="http://www.blogger.com/atom/ns#" term="zend" /><category scheme="http://www.blogger.com/atom/ns#" term="php5" /><title>My Experience of Zend Examination.</title><content type="html">Hello fellas :)&lt;br /&gt;
&lt;br /&gt;
After having 4+ years of experience of PHP I decided to finally get certified by Zend. &lt;br /&gt;
&lt;br /&gt;
So whenever I got time I use study and also spend my time on Devshed Forums, &lt;a href="http://forums.devshed.com/member.php?u=178675"&gt;sarav_dude&lt;/a&gt; is my username. I decided to take a leave from work so that i can totally dedicate my time to this and get passed, and certianly that week was quite a tense for me.&lt;br /&gt;
&lt;br /&gt;
From my experience I can tell you guys who wants ZCE (Zend Certified Engineer) you need to understand how things work, if you say you will by heart the manual u will likely be in trouble because the actual questions are well twisted and can be answered if you understand the concept behind it.&lt;br /&gt;
&lt;br /&gt;
I have purchased &lt;a href="http://shop.zend.com/en/php-certification/zend-php-certification-online-practice-testing.html"&gt;Zend PHP 5 Certification Online Practice Testing&lt;/a&gt; of 10 pack which I later realize that It is more than what its required because all the question of the tests repeat many times as you take different tests and 3 of the test is still remaining with me, and the question they ask are quite good and give you an idea how the question can be but you should not rely on this papers, cracking the answers to the questions they ask is a good way to learn and also study about the related functions and understanding of the concept.&lt;br /&gt;
&lt;br /&gt;
This book &lt;a href="http://shop.zend.com/en/zend-php5-certification-guide-pdf.html"&gt;Zend PHP 5 Certification Guide&lt;/a&gt; provides and in depth knowledge about PHP. You must read this and understand well the concept given in this book before going through the exam.&lt;br /&gt;
&lt;br /&gt;
And finally most important of them all &lt;a href="http://www.php.net/manual/en/"&gt;The Manual&lt;/a&gt; based on the PHP version 5.1 as the Exam is based on that version you need to learn the topics and related functions. Quite a questions from the XML and Web services, SPL, Reflections and few advanced topics. Remember which functions do what, parameters and how the behaviours are changed based on certain parameters.&lt;br /&gt;
&lt;br /&gt;
Once you have a confidence that you can give the exam , you can purchase the voucher from the &lt;a href="http://shop.zend.com/en/php-certification/zend-php5-certification-voucher.html"&gt;Zend online store&lt;/a&gt;, once u have the voucher you can schedule your exam based on the available dates from pearsonvue.com for that you need to make an account on that website and find a centre near to your place and schedule for the required date. Reach the centre 15-20 mins before keep your mind in peace and focus on the exam, make sure you get your 2 id proofs who has your signature and photograph.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- AddThis Button BEGIN --&gt;&lt;br /&gt;
&lt;div&gt;&lt;a expr:addthis:title='data:post.title' expr:addthis:url='data:post.url' class='addthis_button'&gt;&lt;img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/&gt;&lt;/a&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4afd0d335e46c631"&gt;&lt;/script&gt;&lt;/div&gt;&lt;!-- AddThis Button END --&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-1498774789885652809?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/04Kr5iOofqVegJse0q9bOsFwGus/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/04Kr5iOofqVegJse0q9bOsFwGus/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/04Kr5iOofqVegJse0q9bOsFwGus/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/04Kr5iOofqVegJse0q9bOsFwGus/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/TsSMPUZCiwU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/1498774789885652809/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/09/my-experience-of-zend-examination.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/1498774789885652809?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/1498774789885652809?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/TsSMPUZCiwU/my-experience-of-zend-examination.html" title="My Experience of Zend Examination." /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/09/my-experience-of-zend-examination.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEMMRHw9fip7ImA9WxNbFUw.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-1541821104722128503</id><published>2009-09-01T20:20:00.003+05:30</published><updated>2009-11-18T08:18:05.266+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-18T08:18:05.266+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="php" /><category scheme="http://www.blogger.com/atom/ns#" term="functions" /><title>PHP Functions</title><content type="html">If you don't know what functions are…&lt;br /&gt;
&lt;br /&gt;
We use functions for several major reasons&lt;br /&gt;
&lt;br /&gt;
&lt;div style=" padding-left:20px;"&gt;– Readability&lt;br /&gt;
– Maintainability&lt;br /&gt;
– Code separation&lt;br /&gt;
– Modularity&lt;br /&gt;
– Our Comp-Sci teacher told us to&lt;br /&gt;
– To do otherwise would subject us to mockery&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;Functions.. Examples?&lt;/h3&gt;&lt;br /&gt;
&lt;pre&gt;function myName()
 {
  echo "Paul";
 }
 function yourName($name)
 {
  echo $name;
 }
&lt;/pre&gt;&lt;br /&gt;
&lt;h3&gt;Functions - Scope&lt;/h3&gt;&lt;br /&gt;
&lt;pre&gt;function scope($count)
 {
  $count = 100;
  echo $count;
 }
 $count = 3;
 scope($count);
 echo $count;&lt;/pre&gt;&lt;br /&gt;
&lt;h3&gt;Functions - Examples&lt;/h3&gt;&lt;br /&gt;
&lt;pre&gt;function incrementID()
 {
  global $id; //GLOBALS[‘id’];
  $id++;
 }
 function x10($number)
 {
  return $number * 10;
 }
 
 function printList($string, $count = 5)
 {
  for ($i = 0; $i &lt; $count; $i++)
 {
  echo $string;
 }
 }
 
 function newTo5(&amp;$number = 2)
 {
  echo ++$number;
 }
 
 function takeWhatYouGet()
 {
  $a = func_get_args();
  
  foreach ($a as $key =&gt; $value)
  {
   echo "In slot $key I found $value how exciting! \n";
  }
 }
 //takeWhatYouGet(3, 2, "paul", "bob", 28);
 
 
 &lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Functions &amp; Objects, Friends at last&lt;/h3&gt;&lt;br /&gt;
&lt;div style="padding-left:20px;"&gt;- In PHP4 Objects were thrown around ByVal,&lt;br /&gt;
this meant that you made copies without&lt;br /&gt;
even thinking about it.&lt;br /&gt;
- In PHP5 Objects are always passed ByRef&lt;br /&gt;
unless you explicitly clone it, keep that in&lt;br /&gt;
mind&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;Functions - Conclusion&lt;/h3&gt;&lt;br /&gt;
They’re terribly useful&lt;br /&gt;
&lt;div style="padding-left:20px;"&gt;- You have to remember how scope works Practice tracing&lt;br /&gt;
- Objects fly around by reference now&lt;br /&gt;
- Return statements can exist anywhere within&lt;br /&gt;
the function, you can even have several&lt;br /&gt;
- Avoid situations where the same function&lt;br /&gt;
may return nothing, or something (Zend Studio’s Code Analyzer tests for this)&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;Questions for further study&lt;/h3&gt;&lt;div style="padding-left:20px;"&gt;- Develop a function that accepts a variable&lt;br /&gt;
number of parameters&lt;br /&gt;
- Experiment with variable scope, ensure you&lt;br /&gt;
are comfortable with how local and global&lt;br /&gt;
variables interact&lt;br /&gt;
- What happens if a function is defined then&lt;br /&gt;
the PHP scope ends, then resumes again&lt;br /&gt;
later with the remainder of the function&lt;br /&gt;
- Is “_” a valid function name?&lt;br /&gt;
&lt;/div&gt;&lt;a href="http://us2.php.net/manual/en/language.functions.php"&gt;read more&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;!-- AddThis Button BEGIN --&gt;&lt;br /&gt;
&lt;div&gt;&lt;a expr:addthis:title='data:post.title' expr:addthis:url='data:post.url' class='addthis_button'&gt;&lt;img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/&gt;&lt;/a&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4afd0d335e46c631"&gt;&lt;/script&gt;&lt;/div&gt;&lt;!-- AddThis Button END --&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-1541821104722128503?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BsGZwP1mFaduTb3meQUYkNRIOdQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BsGZwP1mFaduTb3meQUYkNRIOdQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BsGZwP1mFaduTb3meQUYkNRIOdQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BsGZwP1mFaduTb3meQUYkNRIOdQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/gVkuOl_4gz0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/1541821104722128503/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/09/functions.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/1541821104722128503?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/1541821104722128503?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/gVkuOl_4gz0/functions.html" title="PHP Functions" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/09/functions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4FQn8zfip7ImA9WxNSFkk.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-6642781512384585669</id><published>2009-08-30T21:45:00.000+05:30</published><updated>2009-08-30T21:45:13.186+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-30T21:45:13.186+05:30</app:edited><title>PHP Questions Answers</title><content type="html">1. Which php.ini directive should be disabled to prevent the execution of a remote PHP script via an include or require construct?&lt;br /&gt;
&lt;br /&gt;
Ans: allow_url_include&lt;br /&gt;
&lt;br /&gt;
2.&amp;nbsp; What is output of following code :&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;class MyException extends Exception {}
class AnotherException extends MyException {}

class Foo {
&amp;nbsp; public function something() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new AnotherException();
&amp;nbsp; }
&amp;nbsp; public function somethingElse() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new MyException();
&amp;nbsp; }
}

$a = new Foo();

try {
&amp;nbsp; try {
&amp;nbsp;&amp;nbsp;&amp;nbsp; $a-&amp;gt;something();&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; } catch(AnotherException $e) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; $a-&amp;gt;somethingElse();&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; } catch(MyException $e) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Caught Exception";
&amp;nbsp; }
} catch(Exception $e) {
&amp;nbsp; print "Didn't catch the Exception!";
}
?&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
Ans: Didn't catch the Exception!&lt;br /&gt;
&lt;br /&gt;
3. When using a function such as strip_tags, are markup-based attacks still possible?&lt;br /&gt;
&lt;br /&gt;
Ans: Yes, because the attributes of the markup tags are completely ignored&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-6642781512384585669?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/xwf2-BN0aoqaPMjWy8M2L6SQmlw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xwf2-BN0aoqaPMjWy8M2L6SQmlw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/xwf2-BN0aoqaPMjWy8M2L6SQmlw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xwf2-BN0aoqaPMjWy8M2L6SQmlw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/Xung4n2iKXk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/6642781512384585669/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/08/php-questions-answers.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/6642781512384585669?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/6642781512384585669?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/Xung4n2iKXk/php-questions-answers.html" title="PHP Questions Answers" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/08/php-questions-answers.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEIESH47eSp7ImA9WxNbFUw.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-3967660445098859690</id><published>2009-08-30T21:15:00.002+05:30</published><updated>2009-11-18T08:18:29.001+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-18T08:18:29.001+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="php" /><category scheme="http://www.blogger.com/atom/ns#" term="basics" /><title>PHP Basics</title><content type="html">PHP Basics refers to a number of things that &lt;br /&gt;
are likely already second nature to you:&lt;br /&gt;
– Syntax&lt;br /&gt;
– Operators&lt;br /&gt;
– Variables&lt;br /&gt;
– Constants&lt;br /&gt;
– Control Structures&lt;br /&gt;
– Language Constructs and Functions &lt;br /&gt;
&lt;h3&gt;PHP Tags&lt;/h3&gt;– Since PHP was designed to be incorporated&lt;br /&gt;
with HTML, the interpreter needs to&lt;br /&gt;
distinguish between PHP code and the&lt;br /&gt;
HTML markup.&lt;br /&gt;
– The most common tags are these:&lt;br /&gt;
– &amp;lt;?php&lt;br /&gt;
– //Long Tags&lt;br /&gt;
– ?&amp;gt; &lt;br /&gt;
– While the regular style of tags is preferred,&lt;br /&gt;
and can not be disabled, you are also&lt;br /&gt;
guaranteed access to the script style tags&lt;br /&gt;
&amp;lt;script language="php"&amp;gt;&lt;br /&gt;
//Long or Script style tags&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
– Short tags have also been quite popular,&lt;br /&gt;
however they can be disabled (often for XML&lt;br /&gt;
compliance) and are falling from favour&lt;br /&gt;
&amp;lt;? echo 'Short PHP tags'; ?&amp;gt;&lt;br /&gt;
&amp;lt;?= $expression ?&amp;gt;&lt;br /&gt;
– The latter set of tags are a shortcut for&lt;br /&gt;
&amp;lt;? echo $expression ?&amp;gt;&lt;br /&gt;
– Both sets of tags can be enabled/disabled via&lt;br /&gt;
use of the short_open_tag directive in php.ini&lt;br /&gt;
– ASP style tags are also available, but must&lt;br /&gt;
be enabled specifically in the php.ini file via&lt;br /&gt;
the asp_tags directive&lt;br /&gt;
&amp;lt;% echo 'ASP-style tags'; %&amp;gt;&lt;br /&gt;
&amp;lt;%= $variable; %&amp;gt;&lt;br /&gt;
&lt;h3&gt;PHP Tags Conclusion&lt;/h3&gt;– Use the long or regular PHP tags to ensure&lt;br /&gt;
your application will be portable across&lt;br /&gt;
multiple servers regardless of configuration&lt;br /&gt;
options.&lt;br /&gt;
&lt;h3&gt;Comments&lt;/h3&gt;– Good programmers comment their code, PHP&lt;br /&gt;
supports multiple syntaxes for comments:&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
//This is a single line comment&lt;br /&gt;
# This is also a single line comment&lt;br /&gt;
/*&lt;br /&gt;
This is a multi-line&lt;br /&gt;
comment&lt;br /&gt;
*/&lt;br /&gt;
&lt;h3&gt;&lt;b&gt;A few comments about comments&lt;/b&gt;&lt;/h3&gt;– Single line comments are ended by either the&lt;br /&gt;
newline character or a closing PHP tag, so a&lt;br /&gt;
single like comment like&lt;br /&gt;
// This tag ?&amp;gt; can end PHP code&lt;br /&gt;
– Can have unintended output.&lt;br /&gt;
&lt;h3&gt;Variables&lt;/h3&gt;– Variables provide containers for data, with&lt;br /&gt;
PHP there are two main naming rules for&lt;br /&gt;
variables and other identifiers:&lt;br /&gt;
– Variables names can only contain letters,&lt;br /&gt;
numbers or underscores&lt;br /&gt;
– Variables names must start with a letter or an&lt;br /&gt;
underscore.&lt;br /&gt;
– Even though PHP is loosely typed, PHP&lt;br /&gt;
variables are still stored and managed in one&lt;br /&gt;
of PHP’s core types:&lt;br /&gt;
– Scalar types: boolean, string, integer, float&lt;br /&gt;
– Compound types: array, object&lt;br /&gt;
– Special Types: resource, null.&lt;br /&gt;
&lt;h3&gt;Scalar Types - Strings&lt;/h3&gt;– Strings can be quoted in one of three ways&lt;br /&gt;
– ‘ ’ – The single quote or string literal, characters&lt;br /&gt;
within single quotes will be recorded as is, without&lt;br /&gt;
variable or escape sequences interpreted and&lt;br /&gt;
replaced&lt;br /&gt;
– “ “ – The double quotes, variables and escape&lt;br /&gt;
sequnces will be interpreted and replaced&lt;br /&gt;
– &amp;lt;&amp;lt;&amp;lt; – Heredoc (next slide)&lt;br /&gt;
The heredoc syntax functions in a similar manner to&lt;br /&gt;
double quotes, but is designed to span multiple lines,&lt;br /&gt;
and allow for the use of quotes without escaping&lt;br /&gt;
$greeting = &amp;lt;&amp;lt;&amp;lt;GREETING&lt;br /&gt;
She said "That is $name's" dog!&lt;br /&gt;
While running towards the thief&lt;br /&gt;
GREETING;&lt;br /&gt;
– The closing heredoc tag must be the first thing on&lt;br /&gt;
the line, the only other permissible character on the&lt;br /&gt;
line is the semi-colon.&lt;br /&gt;
&lt;h3&gt;Scalar Types - Integer&lt;/h3&gt;– Integers (whole numbers) can be specified in&lt;br /&gt;
decimal (base 10), hexadecimal (base 16), or&lt;br /&gt;
octal (base 8) notation and optionally&lt;br /&gt;
preceded by a sign (+, -)&lt;br /&gt;
– To use octal precede the number with a 0&lt;br /&gt;
– To use hex precede the number with a 0x&lt;br /&gt;
– The maximum size of an integer is platform&lt;br /&gt;
dependent, a maximum of ~2Billion is&lt;br /&gt;
common.&lt;br /&gt;
&lt;h3&gt;Scalar Types – Float (double)&lt;/h3&gt;– Floats, or doubles, can be used to represent really&lt;br /&gt;
large or really small values. Floats can be entered&lt;br /&gt;
via several syntaxes&lt;br /&gt;
$a = 1.234; //Standard decimal notation&lt;br /&gt;
$b = 1.2e3; //Scientific notation (1200)&lt;br /&gt;
$c = 7E-10;&lt;br /&gt;
//Scientific notation (0.0000000007)&lt;br /&gt;
– The size of a float is platform-dependent, although a&lt;br /&gt;
maximum of ~1.8e308 with a precision of roughly 14&lt;br /&gt;
decimal digits is a common value. &lt;br /&gt;
&lt;h3&gt;Scalar Types - Boolean&lt;/h3&gt;– Boolean values hold either True (1) or False&lt;br /&gt;
(0)&lt;br /&gt;
– Any integer other than 0 is cast to TRUE&lt;br /&gt;
– TRUE &amp;amp; FALSE are case-insensitive, though&lt;br /&gt;
the all caps representation is common. &lt;br /&gt;
&lt;h3&gt;Quick Quiz&lt;/h3&gt;– Things to ponder:&lt;br /&gt;
– What is the output of:&lt;br /&gt;
echo 09;&lt;br /&gt;
– What is the output of:&lt;br /&gt;
$a = 3e4;&lt;br /&gt;
$b = &amp;lt;&amp;lt;&amp;lt;EOD&lt;br /&gt;
This is a variable: $a&lt;br /&gt;
Wasn't that nice?&lt;br /&gt;
EOD;&lt;br /&gt;
echo $b;  &lt;a href="http://www.w3schools.com/PHP/DEfaULT.asP"&gt;read more&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-3967660445098859690?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5PiwrZ3dlduy_pzJyKlfaxcMfgE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5PiwrZ3dlduy_pzJyKlfaxcMfgE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5PiwrZ3dlduy_pzJyKlfaxcMfgE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5PiwrZ3dlduy_pzJyKlfaxcMfgE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/m1_WNhYd464" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/3967660445098859690/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/08/php-basics.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/3967660445098859690?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/3967660445098859690?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/m1_WNhYd464/php-basics.html" title="PHP Basics" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/08/php-basics.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEICQH06fip7ImA9WxNbFUw.&quot;"><id>tag:blogger.com,1999:blog-2144029686584033751.post-7466358882977306979</id><published>2009-08-30T19:48:00.001+05:30</published><updated>2009-11-18T08:19:21.316+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-18T08:19:21.316+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="exam" /><category scheme="http://www.blogger.com/atom/ns#" term="zend" /><category scheme="http://www.blogger.com/atom/ns#" term="information" /><category scheme="http://www.blogger.com/atom/ns#" term="certification" /><title>Zend Certification Exam Information</title><content type="html">PHP 5 Zend certificaiton Exam covers several topics :&lt;br /&gt;
&lt;br /&gt;
&lt;div class="col4-set"&gt;&lt;div class="col-1"&gt;&lt;h4&gt;&lt;a href="http://www.blogger.com/%20"&gt; &lt;/a&gt; &lt;/h4&gt;&lt;h3&gt;&lt;a href="http://zend-php5.blogspot.com/2009/08/php-basics.html"&gt;PHP Basics&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Syntax&lt;/li&gt;
&lt;li&gt;Operators&lt;/li&gt;
&lt;li&gt;Variables&lt;/li&gt;
&lt;li&gt;Constants&lt;/li&gt;
&lt;li&gt;Control Structures&lt;/li&gt;
&lt;li&gt;Language Constructs and Functions&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Object Oriented Programming&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Instantiation&lt;/li&gt;
&lt;li&gt;Modifiers/Inheritance&lt;/li&gt;
&lt;li&gt;Interfaces&lt;/li&gt;
&lt;li&gt;Exceptions&lt;/li&gt;
&lt;li&gt;Static Methods &amp;amp; Properties&lt;/li&gt;
&lt;li&gt;Autoload&lt;/li&gt;
&lt;li&gt;Reflection&lt;/li&gt;
&lt;li&gt;Type Hinting&lt;/li&gt;
&lt;li&gt;Class Constants&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;PHP 4/5 Differences&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Object Orientation&lt;/li&gt;
&lt;li&gt;E_STRICT&lt;/li&gt;
&lt;li&gt;References vs. Object Handles&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class="col-2"&gt;&lt;h4&gt;&lt;a href="http://www.blogger.com/%20"&gt; &lt;/a&gt; &lt;/h4&gt;&lt;h3&gt;Streams and Network Programming&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Files&lt;/li&gt;
&lt;li&gt;Reading&lt;/li&gt;
&lt;li&gt;Writing&lt;/li&gt;
&lt;li&gt;File System Functions&lt;/li&gt;
&lt;li&gt;Streams&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;h3&gt;Security&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Configuration&lt;/li&gt;
&lt;li&gt;Session Security&lt;/li&gt;
&lt;li&gt;Cross-Site Scripting&lt;/li&gt;
&lt;li&gt;Cross-Site Request Forgeries&lt;/li&gt;
&lt;li&gt;SQL Injection&lt;/li&gt;
&lt;li&gt;Remote Code Injection&lt;/li&gt;
&lt;li&gt;Email Injection&lt;/li&gt;
&lt;li&gt;Filter Input&lt;/li&gt;
&lt;li&gt;Escape Output&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;h3&gt;Functions&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Syntax&lt;/li&gt;
&lt;li&gt;Arguments&lt;/li&gt;
&lt;li&gt;Variables&lt;/li&gt;
&lt;li&gt;References&lt;/li&gt;
&lt;li&gt;Returns&lt;/li&gt;
&lt;li&gt;Variable Scope&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class="col-3"&gt;&lt;h4&gt;&lt;a href="http://www.blogger.com/%20"&gt; &lt;/a&gt; &lt;/h4&gt;&lt;h3&gt;Databases and SQL&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;SQL&lt;/li&gt;
&lt;li&gt;Joins&lt;/li&gt;
&lt;li&gt;Analyzing Queries&lt;/li&gt;
&lt;li&gt;Prepared Statements&lt;/li&gt;
&lt;li&gt;Transactions&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;h3&gt;Strings and Patterns&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Quoting&lt;/li&gt;
&lt;li&gt;Matching&lt;/li&gt;
&lt;li&gt;Extracting&lt;/li&gt;
&lt;li&gt;Searching&lt;/li&gt;
&lt;li&gt;Replacing&lt;/li&gt;
&lt;li&gt;Formatting&lt;/li&gt;
&lt;li&gt;PCRE&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;h3&gt;Arrays&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Enumerated Arrays&lt;/li&gt;
&lt;li&gt;Associative Arrays&lt;/li&gt;
&lt;li&gt;Array Iteration&lt;/li&gt;
&lt;li&gt;Multi-Dimensional Arrays&lt;/li&gt;
&lt;li&gt;Array Functions&lt;/li&gt;
&lt;li&gt;SPL&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class="col-4"&gt;&lt;h4&gt;&lt;a href="http://www.blogger.com/%20"&gt; &lt;/a&gt; &lt;/h4&gt;&lt;h3&gt;XML and Web Services&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;XML Basics&lt;/li&gt;
&lt;li&gt;SimpleXML&lt;/li&gt;
&lt;li&gt;XML Extension&lt;/li&gt;
&lt;li&gt;Xpath&lt;/li&gt;
&lt;li&gt;Webservices Basics&lt;/li&gt;
&lt;li&gt;SOAP&lt;/li&gt;
&lt;li&gt;REST&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;Web Features&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Sessions&lt;/li&gt;
&lt;li&gt;Forms&lt;/li&gt;
&lt;li&gt;GET and POST data&lt;/li&gt;
&lt;li&gt;Cookies&lt;/li&gt;
&lt;li&gt;HTTP Headers&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;h3&gt;Design and Theory&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;IDesign Patterns&lt;/li&gt;
&lt;li&gt;Code Reuse&lt;/li&gt;
&lt;li&gt;OOP Theory&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href="http://www.zend.com/en/services/certification/faq?search=&amp;amp;page=1"&gt;FAQ for exam&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2144029686584033751-7466358882977306979?l=php-zend.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Pbqdcz4jsf_Elrk3WjHk368HXUM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Pbqdcz4jsf_Elrk3WjHk368HXUM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Pbqdcz4jsf_Elrk3WjHk368HXUM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Pbqdcz4jsf_Elrk3WjHk368HXUM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PreparingForPhpZendCertification/~4/OGDL87u2ENE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://php-zend.blogspot.com/feeds/7466358882977306979/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://php-zend.blogspot.com/2009/08/exam-information.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7466358882977306979?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2144029686584033751/posts/default/7466358882977306979?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PreparingForPhpZendCertification/~3/OGDL87u2ENE/exam-information.html" title="Zend Certification Exam Information" /><author><name>Sarav</name><uri>http://www.blogger.com/profile/17756295336999019376</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://php-zend.blogspot.com/2009/08/exam-information.html</feedburner:origLink></entry></feed>

