Looking for cheat sheet of php tags

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

BMAN
Forum Newbie
Posts: 6
Joined: Mon Jul 10, 2006 2:40 pm

Looking for cheat sheet of php tags

Post by BMAN »

Hello,

Could someone please direct me to a webpage that lists a table of all the common php tags w/ a quick definition next to each one?. I tried searching 'php tags' on Google with no luck.

Thanks a bunch!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Looking for cheat sheet of php tags

Post by Chris Corbyn »

BMAN wrote:Hello,

Could someone please direct me to a webpage that lists a table of all the common php tags w/ a quick definition next to each one?. I tried searching 'php tags' on Google with no luck.

Thanks a bunch!
FYI "php tags" are just <?php ?> and <? ?> and <?= ?>. The latter two being "short tags" and due to be disabled by default.

I guess you mean PHP Functions. ilovejackdaniels.com has some cheatsheets but php.net provides everything you need ;)
Gambler
Forum Contributor
Posts: 246
Joined: Thu Dec 08, 2005 7:10 pm

Post by Gambler »

due to be disabled by default.
Source?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Gambler wrote:
due to be disabled by default.
Source?
Don't have one sorry... I apologise if that's bad info. Just the rumours I've heard about PHP6 dropping short tags along with some other things. Just general stuff I've seen blogged etc but not officially from PHP/Zend I admit.
BMAN
Forum Newbie
Posts: 6
Joined: Mon Jul 10, 2006 2:40 pm

Post by BMAN »

How obvious is it that I know absolutely nothing about php? :wink:

I'm having someone build a CMS site for me that has alot of php code in it. I don't know anything about php. All I know is HTML. I just assumed that whatever is between brackets in php was called a tag, like with HTML. Anyways, I basically just wanna be able 'read' some of the php code in my site and figure out what it's in reference to.

Thanks for the tips guys. :D
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Anyways, I basically just wanna be able 'read' some of the php code in my site
PHP manual.
Don't expect to know it all in an afternoon. PHP is a programming language.
bdlang
Forum Contributor
Posts: 395
Joined: Tue May 16, 2006 8:46 pm
Location: Ventura, CA US

Post by bdlang »

User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

d11wtq wrote:
Gambler wrote:
due to be disabled by default.
Source?
Don't have one sorry... I apologise if that's bad info. Just the rumours I've heard about PHP6 dropping short tags along with some other things. Just general stuff I've seen blogged etc but not officially from PHP/Zend I admit.
I got a source to back up d11wtg:
http://www.php.net/~derick/meeting-note ... dd-php-var
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

that's a great article btw, worth scanning.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

When in need of something 'PHP cheat sheet related' check out the 'Useful PHP Resources' Topic of the PHP - Code Forum.
Gambler
Forum Contributor
Posts: 246
Joined: Thu Dec 08, 2005 7:10 pm

Post by Gambler »

I got a source to back up d11wtg
1. We kill "<%" but keep "<?".
Actually, it contradicts what d11wtg said.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I think that means that PHP will no longer support ASP style tags.
User avatar
shoebappa
Forum Contributor
Posts: 158
Joined: Mon Jul 11, 2005 9:14 pm
Location: Norfolk, VA

Post by shoebappa »

Pretty good one-page reference: http://www.ilovejackdaniels.com/cheat-s ... eat-sheet/

Not a plug for the liquor other than the name of the site, just an odd name for a blog...

But if you're just starting, I don't know how much a cheat sheet will help, good if you knew PHP and had just been off it a while. I'd look up PHP Tutorials on google and start there.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Just read the Useful PHP Resources thread sticky.
BMAN
Forum Newbie
Posts: 6
Joined: Mon Jul 10, 2006 2:40 pm

Post by BMAN »

bdlang wrote:How about PHP's Function Index?
Now THAT'S scary! 8O

I think I'll start w/ the stuff at ilovejackdaniels.com. Looks a bit friendlier. Now I understand the reason for the domain name. Learning php probably drove the guy to drinking!
Post Reply