<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 20 Jun 2013 05:54:38 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Nikita Popov's Blog: Understanding PHP's internal function definitions (Part 2)]]></title>
      <guid>http://www.phpdeveloper.org/news/17688</guid>
      <link>http://www.phpdeveloper.org/news/17688</link>
      <description><![CDATA[<p>
Following <a href="http://blog.ircmaxell.com/2012/03/phps-source-code-for-php-developers.html">this recent post</a> from <i>Anthony Ferraara</i> about the source code of the PHP language itself, <i>Nikita Popov</i> is working with him and has produced <a href="http://nikic.github.com/2012/03/16/Understanding-PHPs-internal-function-definitions">the second part</a> of the series, a look at finding the internal function definitions for the PHP functions you use every day.
</p>
<blockquote>
In the <a href="http://blog.ircmaxell.com/2012/03/phps-source-code-for-php-developers.html">previous part</a> ircmaxell explained where you can find the PHP source code and how it is basically structured and also gave a small introduction to C (as that's the language PHP is written in). If you missed that post, you probably should read it before starting with this one. What we'll cover in this article is locating the definitions of internal functions in the PHP codebase, as well as understanding them.
</blockquote>
<p>
He starts with a basic example - a string function, <a href="http://php.net/strpos">strpos</a>. He shows a handy searching trick to help find the actual function definition and which matches should be given priority. He lays out a typical skeleton of a PHP function definition and gets into some detail as to what this particular function does (in C). He briefly mentions the Zend Engine functions and a look ahead to finding classes and methods.
</p>]]></description>
      <pubDate>Mon, 19 Mar 2012 08:17:48 -0500</pubDate>
    </item>
  </channel>
</rss>
