[ create a new paste ] login | about

Link: http://codepad.org/jujMmiPn    [ raw code | output | fork ]

martin@mustbebuilt.co.uk - PHP, pasted on Oct 22:
1
2
3
4
5
6
7
<?php
$fullname = "Martin Cooper";
$firstName = substr($fullname, 0, 6);
echo $firstName;
$surname = substr($fullname, 7, 6);
echo $surname ;
?>


Output:
1
MartinCooper


Create a new paste based on this one


Comments: