3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $line = '"1212","$ 507.74","$ 0.00","$ 2,954.16","Kč 9,647.00","","TDR 697","","Kč 23,737.00","","","","","Kč 457.00","","","","","Kč 29,959.00","","","","","$ 104.00","","3232"'; $line = explode('","', $line); $line[0] = substr(trim($line[0], "\t\n\r"), 1); $line[count($line)-1] = substr(rtrim($line[count($line)-1], "\t\n\r"), 0, count($line)-1); echo substr(rtrim($line[count($line)-1], "\t\n\r"), 0, count($line)); echo substr(rtrim($line[count($line)-1], "\t\n\r"), 0, count($line)-1); echo substr(rtrim($line[count($line)-1], "\t\n\r"), 0, count($line)-2);
Output for 4.3.0 - 7.1.0
3232"3232"3232"