Re: Undefined offset notice with explode
- From: Alvaro G Vicario <alvaro_QUITAR_REMOVE@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 May 2005 20:15:44 +0200
*** Richard Lawrence wrote/escribió (31 May 2005 01:55:16 -0700):
> list($key, $value) = explode(":", $line, 2);
Not as elegant as list but...
$pair=explode(":", $line, 2);
if(count($pair)==2){
echo $pair[0];
echo $pair[1];
}
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
.
- References:
- Undefined offset notice with explode
- From: Richard Lawrence
- Undefined offset notice with explode
- Prev by Date: Re: input SQL data through text box and get nothing?
- Next by Date: Re: Undefined offset notice with explode
- Previous by thread: Re: Undefined offset notice with explode
- Next by thread: socket_close() problem
- Index(es):