bcompiler_write_function

(PECL bcompiler >= 0.5)

bcompiler_write_function锟斤拷锟街斤拷锟斤拷写锟诫定锟斤拷锟斤拷暮锟斤拷锟�

说锟斤拷

bcompiler_write_function ( resource $filehandle , string $functionName ) : bool

锟斤拷 PHP 锟斤拷取锟街存函锟斤拷锟斤拷锟街斤拷锟诫,锟斤拷锟斤拷锟斤拷锟斤拷写锟斤拷蚩锟斤拷募锟斤拷锟斤拷锟叫★拷顺锟津并诧拷锟斤拷要锟斤拷 锟斤拷锟斤拷锟斤拷锟斤拷韬拷锟� b 锟矫碉拷锟剿猴拷锟斤拷 a锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷牵锟斤拷锟斤拷峁わ拷锟斤拷煤芎茫锟�

锟斤拷锟斤拷

filehandle

fopen() 锟斤拷锟截碉拷一锟斤拷锟侥硷拷锟斤拷锟斤拷锟�

functionName

锟斤拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷式锟斤拷

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷

锟斤拷锟斤拷

Example #1 bcompiler_write_function() 锟斤拷锟斤拷

<?php
$fh 
fopen("/tmp/example","w");
bcompiler_write_header($fh);
bcompiler_write_function($fh,"my_function_a");
bcompiler_write_function($fh,"my_function_b");
bcompiler_write_footer($fh);
fclose($fh);

?>

注锟斤拷

Warning

锟剿猴拷锟斤拷锟斤拷实锟斤拷锟斤拷锟侥★拷锟剿猴拷锟斤拷锟侥憋拷锟襟,帮拷锟斤拷锟斤拷锟狡硷拷锟斤拷锟斤拷锟斤拷牡锟斤拷锟斤拷锟斤拷锟斤拷锟轿达拷锟斤拷锟� PHP 锟斤拷锟斤拷锟芥本锟斤拷未通知锟酵憋拷锟睫改★拷使锟矫憋拷锟斤拷锟斤拷锟斤拷锟斤拷锟皆碉拷 锟斤拷

锟轿硷拷