Jump to content

Explanation of codes


lban1

Recommended Posts

Hello everyone,

 

Can somebody help me? I am a novice in PHP programming.

I do not understand a line of code below:

 

$action = isset($_GET['action']) ? $_GET['action'] : '';

 

The variables $action saves the values obtained by the GET method, but what does this piece of code

 

? $_GET['action'] : '';

 

Thanks in advance!

 

Link to comment
https://forums.phpfreaks.com/topic/227538-explanation-of-codes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.