Remove first and last char from string

Zeracles

New Member
I have this:\[code\]$dataList = "*one*two*three*";$list = explode("*", $dataList);echo"<pre>";print_r($list);echo"</pre>";\[/code\]which outputs:\[code\]> Array (> [0] => > [1] => one> [2] => two> [3] => three> [4] => )\[/code\]How do I strip the fist and last * in the string before exploding?
 
Back
Top