Click to See Complete Forum and Search --> : Somewhere to find basic PHP syntax?
Hello,
I don't come from a programming background, but am starting to use PHP quite alot. I was wondering if you could point me in the direction of an online resource library for very simple things like syntax etc.
While I am at it, what is the syntax for OR ?
Cheers,
yari
mithril
11-29-2001, 03:03 AM
The syntax for OR is ||, AND is &&. With regards to syntax, read Ch. 2 of the manual.
http://www.php.net/manual/en/langref.php
-geoff
sobbayi
11-29-2001, 05:41 AM
A good place to start is http://www.php.net you can get some tutorials there and go ahead and download the php manual
the symbol for or is || even just using 'or' works
eg This ...
if($item1 == '$itemx' || $item2 =='$itemy')
{
code comes here;
}
is the same as...
if($item1 == '$itemx' or $item2 =='$itemy')
{
code comes here;
}
Thank you both, this has helped me considerable, and now I know where to find further documention as I learn PHP.
The manual from http://www.php.net will come in handy.
THanks again,
Yari
sobbayi
11-30-2001, 03:33 AM
Am glad we were able to help out . If any other difficulties just drop a line
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.