PHPize Online / SQLize Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy
Copy Format Clear
<?php $str = '[id618892552|Victoria Tran]'; list($id, $name) = explode('|', trim($str, '][')); echo 'id: ' . $id . PHP_EOL; echo 'name: ' . $name . PHP_EOL;
Show:  
Copy