[ create a new paste ] login | about

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

PHP, pasted on Apr 9:
1
2
3
4
5
6
7
8
9
<?php

$data = "123_String";

if (($pos = strpos($data, "_")) !== FALSE) { 
    $whatIWant = substr($data, $pos+1); 
}

echo $whatIWant;


Output:
1
String


Create a new paste based on this one


Comments: