Jump to content

Actions & Tertiary Operators


2levelsabove

Recommended Posts

OK so I know how tertiary operators work

 

$videos = is_array($videodata) ? $videodata : 0;

 

 

how ever can one do actions instead of just assigning values ?

 

for example :

 

(if true ) ? (do this ) ( else that)  OR IN MY CASE  (is_array($videodata)) ? return $videodata : return 0;

Link to comment
https://forums.phpfreaks.com/topic/196251-actions-tertiary-operators/
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.