(PECL bcompiler >= 0.5)
bcompiler_write_functions_from_file — 锟斤拷锟街斤拷锟斤拷写锟斤拷一锟斤拷锟侥硷拷锟叫讹拷锟斤拷锟斤拷锟斤拷锟斤拷院锟斤拷锟�
$filehandle
, string $fileName
) : bool锟接革拷锟斤拷锟斤拷锟侥硷拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷泻锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷嵌锟接︼拷锟斤拷纸锟斤拷锟叫达拷锟津开碉拷锟侥硷拷锟斤拷锟斤拷小锟�
filehandle
fopen() 锟津开诧拷锟斤拷锟截碉拷一锟斤拷锟侥硷拷锟斤拷锟斤拷锟�
fileName
要锟斤拷锟斤拷锟斤拷募锟斤拷锟斤拷锟斤拷锟斤拷潜锟斤拷锟� inculde 锟斤拷 require 锟斤拷锟斤拷锟揭拷锟斤拷锟斤拷锟侥硷拷锟斤拷
锟缴癸拷时锟斤拷锟斤拷 TRUE
锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE
锟斤拷
Example #1 bcompiler_write_functions_from_file() 锟斤拷锟斤拷
<?php
require('module.php');
$fh = fopen("/tmp/example","w");
bcompiler_write_header($fh);
bcompiler_write_functions_from_file($fh,'module.php');
bcompiler_write_footer($fh);
fclose($fh);
?>
锟剿猴拷锟斤拷锟斤拷实锟斤拷锟斤拷锟侥★拷锟剿猴拷锟斤拷锟侥憋拷锟襟,帮拷锟斤拷锟斤拷锟狡硷拷锟斤拷锟斤拷锟斤拷牡锟斤拷锟斤拷锟斤拷锟斤拷锟轿达拷锟斤拷锟� PHP 锟斤拷锟斤拷锟芥本锟斤拷未通知锟酵憋拷锟睫改★拷使锟矫憋拷锟斤拷锟斤拷锟斤拷锟斤拷锟皆碉拷 锟斤拷