[ create a new paste ] login | about

Link: http://codepad.org/bUXKN4el    [ raw code | output | fork | 3 comments ]

PHP, pasted on Oct 2:
1
2
3
4
5
6
7
<?php 

$s = 'anotherfoo:bar;seg98y34g.?sdebvw h segvu';
$result = array_shift(explode(':', $s));
echo $result;

?>


Output:
1
anotherfoo


Create a new paste based on this one


Comments:
posted by 001dysc on Dec 16
hello
reply
posted by 001dysc on Dec 16
asdfghjkl;hgfdsdfghsfffhhfs
reply
posted by 001dysc on Dec 16
sadgh:jkau
reply