<?php $test = 'a string that ends with ;'; if (';' === substr($test, -1)) { echo 'yes'; } else { $test .= ';'; }
You have javascript disabled. You will not be able to edit any code.