Go Back   vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems > PHP Discussions, Tutorials and Help

Reply 
 
LinkBack Thread Tools Display Modes
Old 01-09-2010, 06:56 PM   #1
vBulletin Owner
 
Join Date: Feb 2009
Posts: 212
Blog Entries: 1
faith is a jewel in the roughfaith is a jewel in the rough
php question

Anyone know what this statement is:

$id= is_numeric($_GET['id'])?$_GET['id']:0;

Maybe explain it a little please?
faith is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 01-11-2010, 11:14 PM   #2
entrepreneur
 
Join Date: Jan 2010
Posts: 1
buzzme will become famous soon enough
Re: php question

Hi
well , it has called a short form of the if condition , let me take the snippet inside the brackets

($_GET['id'])?$_GET['id']:0

So if I expand it ,

if ($_GET['id'])
{
return ($_GET['id']);
}
else
{
return 0;

}

Thanks.

Last edited by Mikey; 01-12-2010 at 06:58 PM. Reason: removed fake sig.
buzzme is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems > PHP Discussions, Tutorials and Help

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yes or No, Answer a Question & Ask a Question Brandon Sheley General Discussion 136 Yesterday 08:19 PM
SEO Question Teepeg vBulletin SEO Tips and SEO Questions 15 04-22-2009 12:40 AM
Only one question fyndler Troubleshooting vBulletin Problems 16 10-26-2007 07:10 AM
PR question aj8690 General Discussion 6 03-07-2007 02:50 AM


All times are GMT -8. The time now is 06:34 AM.