My function getStockStatus($stock_Id) returns
array(3) { ["pqty"]=> string(2) "10" ["sqty"]=> int(20) ["cqty"]=> int(-10) }
(as var_dump).
If I use getStockStatus(12)['pqty'] I get an error Parse error: syntax error, unexpected '[', expecting ',' or ';' in D:\xampp\htdocs\acs\ac_stockstatus.php on line 50.
How to use this function?