It packs data into a binary string
Example
<?php
echo pack(“C8”,80,72,80,67,79,68,69,83);
?>
Output
PHPCODES
It packs data into a binary string
Example
<?php
echo pack(“C8”,80,72,80,67,79,68,69,83);
?>
Output
PHPCODES
It sets whether a remote client can abort the running of a script
Example
<?php
ignore_user_abort(true);
?>
It outputs a string with the PHP syntax highlighted
Example
<?php
highlight_string(“<?php echo ‘phpcode’ ?>”);
?>
It outputs a file with the PHP syntax highlighted
Example
<?php
highlight_file(“index.php”);
?>
It halts the compiler execution
Example
<?php
__halt_compiler();
?>
It returns the capabilities of the user’s browser
Example
<?php
echo “<pre>”;
print_r( get_browser(null,true));
?>
It output a message and terminate the current script
Example
<?php
$fp = fopen($site,”r”) or exit(“Failed”);
?>
Output
phpcode
It evaluates a string as PHP code.
Example
<?php
$lan = “phpcode”;
$text = ‘$lan’;
eval(“$value = “$text”;”);
echo $value;
?>
Output
phpcode
Its an alias of the exit() and prints a message and exits the current script
Example
<?php
$fp = fopen(“test.xml”,”r”) or die(“Failed”);
?>
It checks whether a given named constant exists
Example
<?php
echo defined(“LAN”)?LAN:”Not defined”;
?>
Output
Not defined