Re: [PHP] array limits in echo function?

2002-04-08 Thread lmlweb

Hi Miguel,

I'm reading the manual as of this moment. Thank you for saying "RTFM" so
very nicely!

I guess I've used "$fname $lname" before, and just forgot at this point.

Cheers,
Laurie

"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Mon, 8 Apr 2002, lmlweb wrote:
> > I'm just curious:
> >
> > if I use within my html codes:
> >
> > , I get an error message telling me:
> >
> > Parse error: parse error, expecting `','' or `';''
> >
> > However, if I take out one of the variables so that it reads  > $lname; ?> it works.
> >
> > Has it always been this way? I never noticed before, as I'm quite the
> > newbie.  If so, how do I best combine the two (other than having to
create
> > two separate  codes in the HTML)?
>
> Syntax is not random.
>
> echo wants to be fed a comma-separated list of arguments. This is very
> clearly described in the manual (http://php.net/echo) and should not be
> difficult to figure out.
>
> So you can sent it a variable:
>
>echo $fname;
>
> Or you can send it a string:
>
>echo "Hello";
>
> Or you can send it a string that contains some variables:
>
>echo "$fname $lname";
>
> Or you can send it a bunch of variables and strings:
>
>echo $fname, ' ', $lname;
>
> The manual is your friend.
>
> miguel
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] array limits in echo function?

2002-04-08 Thread Miguel Cruz

On Mon, 8 Apr 2002, lmlweb wrote:
> I'm just curious:
> 
> if I use within my html codes:
> 
> , I get an error message telling me:
> 
> Parse error: parse error, expecting `','' or `';''
> 
> However, if I take out one of the variables so that it reads  $lname; ?> it works.
> 
> Has it always been this way? I never noticed before, as I'm quite the
> newbie.  If so, how do I best combine the two (other than having to create
> two separate  codes in the HTML)?

Syntax is not random.

echo wants to be fed a comma-separated list of arguments. This is very 
clearly described in the manual (http://php.net/echo) and should not be 
difficult to figure out.

So you can sent it a variable:

   echo $fname;

Or you can send it a string:

   echo "Hello";

Or you can send it a string that contains some variables:

   echo "$fname $lname";

Or you can send it a bunch of variables and strings:

   echo $fname, ' ', $lname;

The manual is your friend.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] array limits in echo function?

2002-04-08 Thread lmlweb

I'm just curious:

if I use within my html codes:

, I get an error message telling me:

Parse error: parse error, expecting `','' or `';''

However, if I take out one of the variables so that it reads  it works.

Has it always been this way? I never noticed before, as I'm quite the
newbie.  If so, how do I best combine the two (other than having to create
two separate  codes in the HTML)?

Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] array limits????

2001-05-11 Thread Jason Stechschulte

On Thu, May 10, 2001 at 10:27:55AM -0400, shaun wrote:
> is there a limit to the number of fields one can put in an array??
> heres the code im using to create the array
> 
> $arrResIDs = explode(",",$RESID,300);
> now $RESID has at least 100 different values in it but when i print out the
> array i only get 80
> can anyone shed some light on this subject???

Seeing code sure would help.  100 values in a PHP array is nothing.

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
Tcl tends to get ported to weird places like routers.
 -- Larry Wall in <[EMAIL PROTECTED]>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] array limits????

2001-05-10 Thread shaun

is there a limit to the number of fields one can put in an array??
heres the code im using to create the array

$arrResIDs = explode(",",$RESID,300);
now $RESID has at least 100 different values in it but when i print out the
array i only get 80
can anyone shed some light on this subject???



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]