Sorry I ain't that good with PHP yet, I tried this to find it and then put each line in an array
$translate="this
is in
multiple
lines";
$lastBreak=0;
$it=array();
$ci=0;
for ($i=1;$i<strlen($translate);$i++) {
if strchr(substr($translate,$i,$i),"\n") {
$it[$ci]=substr($translate,$lastBreak+1,$i-1);
$ci+=1;
$lastBreak=$i;
}
}
help?
$it = explode("\n", $translate);
http://php.net/explode
:)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With