<?php $str = "This string has no dash"; list($a, $b) = explode('-', $str, 2);
You have javascript disabled. You will not be able to edit any code.