($admin_allowed_stores[0] == '*' ? " " : " LEFT JOIN " . TABLE_PRODUCTS_TO_STORES . " p2s ON p.products_id = p2s.products_id ")
this is the conditional operator syntax
x=condition?truevalue:falsevalue;
here the condition is if($admin_allowed_stores[0] == '*')
if this is true then " " (the true condition )is assigned.
if the condition is false " LEFT JOIN " . TABLE_PRODUCTS_TO_STORES . " p2s ON p.products_id = p2s.products_id ")
"." is string concatination operator used in php.in dot net "+" is used for the same purpose.
please mark it as answer if it satisfy.if you still have any query please feel free to ask.
thanks
sanjeev
It feels good when someone really appreciate your efforts.please mark as answer if it has helped you.This can be helpful for those who face the same problem in future.