Jump to content

Unsure of code meaning


web_monkey7

Recommended Posts

What does this mean...

 

$controllerAction = isset($_GET['a'])?$_GET['a']:'portal/home';
$controllerAction = trim($controllerAction, "/");

 

I understand the $_GET part of it, but I have no clue what the "?" before the 2nd $_GET is or what the ":'portal/home'" does together as a whole. Can someone please explain thanks!. I am new to PHP...

Link to comment
https://forums.phpfreaks.com/topic/258864-unsure-of-code-meaning/
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.