downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/internals2.funcs.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/internals2.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'internals2.funcs.php',
   
1 => 'Writing functions',
  ),
 
'up' =>
  array (
   
0 => 'internals2.php',
   
1 => 'PHP at the Core: A Hacker\'s Guide to the Zend Engine',
  ),
 
'prev' =>
  array (
   
0 => 'internals2.variables.php',
   
1 => 'Working with variables',
  ),
 
'next' =>
  array (
   
0 => 'internals2.objects.php',
   
1 => 'Working with classes and objects',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
  <h1>Writing functions</h1>

  <p class="para">
  PHP is also known as a Glue language, and extending it, can be easily done
with those extensions generators. When you use ext_skel and a prototype file
to generate the C function stubs, you will notice that all of the exported
functions created have a simple prototype such as the following:
PHP_FUNCTION(func_name)
  </p>
 </div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites