<?php $str = 'this is a test'; echo substr( $str, 0, strpos( $str, ' ' ) );
You have javascript disabled. You will not be able to edit any code.