savsofts
asked on
PHP function to select first two values of variable
Hello,
i need php function to select first two values of variable.
eg.
$val=3456;
or
$val=34567;
then it will pick only first two values
$val=34;
i need php function to select first two values of variable.
eg.
$val=3456;
or
$val=34567;
then it will pick only first two values
$val=34;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
use substr :), assume the logic is similar the in the source
Open in new window