<?php $a = 'aaa'; $b = 'ahoj aaa'; echo substr($b, 0, -strlen($a - 1)); echo "\n"; echo substr($b, 0, -strlen($a) - 1);
You have javascript disabled. You will not be able to edit any code.