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(); ?>