Re: $meme = chop($littlelist[$i][1])

From: Date: Fri, 13 Jul 2001 13:51:47 +0000
Subject: Re: $meme = chop($littlelist[$i][1])
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-59962@lists.php.net to get a copy of this message
Thanx Zeev, but guess what ? it was only me...:( But this code worx now :) <tr> <form method="post" action="./dwvhouse.php"> <td valign="center" align="right"> <select name="huisie"> <?for ($i=0;$i<$c;$i++) { echo "<option value='".chop(ltrim($littlelist[$i][0]))."'>".$littlelist[$i][1]."</option>" ; };?> </select><br> <input type="submit" value="view"> </td> </form> </tr> ------some output [ press alt-v and then c in ie] the output :--) <option value='205napier'> 205 Piaza</option> <option value='13adesmidt'> 13a De Smidt</option> <option value='19desmidt'> 19 de Smidt Place</option> <option value='133desmidt'> 13.3 De Smit</option> <option value='29dixon'> 29 Dixon</option> <option value='27dixon'> 27 Dixon Street</option> ... ... ... ... T1 ;-) enjoy the weekend ; Zeev Suraski <zeev@zend.com> wrote in message news:5.1.0.14.2.20010713161231.035fce60@mail.zend.com... > It removes trailing spaces. It's not supposed to remove leading spaces. > > Zeev > > At 16:10 13/7/2001, void wrote: > > >$littlelist[$i][1] = " whatever " > > > >the command in the subject line doesn't work ! > > > >it does not get rid of the spaces in the $littlelist[$i][1] var. > >or is it just me ..? > > > >i would like 2 no. > > > >thanx > > > > > > > > > >-- > >PHP Development Mailing List <http://www.php.net/> > >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > >For additional commands, e-mail: php-dev-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > Zeev Suraski <zeev@zend.com> > CTO & co-founder, Zend Technologies Ltd. > http://www.zend.com/ >

« previous php.dev (#59962) next »