can someone help me finding the position of the in string?
$data="e0ab71ab9ed24e627a24e7d65367936393cb3b39db9a9e84d65cd7a9254a4665";
here data contain length 64.
just I need if string index position is 30 break the line and print next line remaining numbers.
use chunk_split()
:
$data = "e0ab71ab9ed24e627a24e7d65367936393cb3b39db9a9e84d65cd7a9254a4665";
echo chunk_split($data, 30, "<br />");
Just use substr()
.
http://php.net/manual/en/function.substr.php
echo substr($data, 0, 30), "
", substr($data, 30);