funny how that perl code looks so much like php ... or is it the other way
around.
Thomas Bolioli schreef:
I should add, it is not working with this funciton, which could be the
source of the issue.
function dropbox_from_list($list, $selected_index){
while ($nex = next($list)) {
$k =
On Fri, 2008-09-19 at 13:43 -0400, Thomas Bolioli wrote:
> I hav ebeen able to track down that this is the part not working. It
> throws a parse error:
> PHP Parse error: syntax error, unexpected T_VARIABLE on the line where
> the foreach loop starts.
>
> function dropbox_from_list(&$list, $se
I found the issue. The whitespace in between $list as $k => $V was all
not truly whitespace. Gotta love BBEdit...
Thomas Bolioli wrote:
I hav ebeen able to track down that this is the part not working. It
throws a parse error:
PHP Parse error: syntax error, unexpected T_VARIABLE on the line
w
I hav ebeen able to track down that this is the part not working. It
throws a parse error:
PHP Parse error: syntax error, unexpected T_VARIABLE on the line where
the foreach loop starts.
function dropbox_from_list(&$list, $selected_index){
foreach ($list as $k => $v) {
if (strcmp($se
Thomas Bolioli wrote:
I should add, it is not working with this funciton, which could be the
source of the issue.
function dropbox_from_list($list, $selected_index){
while ($nex = next($list)) {
I'd use foreach() here and avoid next(). At least, reset the array
first. And maybe pass the a
This came straight out of the docs and it doesn't even work. It throws
PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on
the line "'one' => 1,"
What is wrong with how I am trying to do this loop??
Thanks,
Tom
$a = array(
'one' => 1,
'two' => 2,
'three' => 3,
'
I should add, it is not working with this funciton, which could be the
source of the issue.
function dropbox_from_list($list, $selected_index){
while ($nex = next($list)) {
$k = key($nex);
if (strcmp($selected_index, $k) == 0) {
$select = ' SELECTED';
}
7 matches
Mail list logo