【发布时间】:2012-01-22 14:36:38
【问题描述】:
我在回显数组时遇到问题。
$test = 'one two three four';
$arr = explode(' ', $test);
echo '<br />+'.$arr[0].' +(>'.$arr[1].' <'.$arr[2].'';
它在 $arr[1] 处停止回显,我需要这个用于 mysql 中的特殊查询。
我需要实现的是:
('+one +(>two <three)
另外,我想知道如何使用 $arr[2] 中的“
('+one +(>two <three <four ... <infinite)
【问题讨论】: