- chr: documentation ( source)
- bindec: documentation ( source)
<?php
$string = 'goofe eas تان ک'.chr( bindec( '11111100' ) ).'ے عسکری ذرائع کے مطابق بدھ' .chr( bindec( '11011111' ) );
echo utf8_substr( $string , 6 )."\n";
echo utf8_substr( $string , 6 , 4 )."\n";
echo utf8_substr( $string , 6 , -4 )."\n";
echo utf8_substr( $string , -4 )."\n";
exit(0);