Using a 0 as the last parameter for substr().
As per examples
<?php $var = substr($var, 4); ?>
works no problem. However
<?php $var = substr($var, 4, 0); ?>
will get you nothing. Just a quick heads up
Using a 0 as the last parameter for substr().
As per examples
<?php $var = substr($var, 4); ?>
works no problem. However
<?php $var = substr($var, 4, 0); ?>
will get you nothing. Just a quick heads up