When declaring arrays is double quotes better than single quotes?
Most of the time it doesn't matter, but double quoted strings support more complex syntax inside of them. So, the general rule of thumb is, use single quoted strings unless you have a reason to use the double quoted syntax. Whether or not you're using them in relation to arrays is irrelevant.
only thing you cannot do is thisreturn array('slug'=>'$parentslug','title'=>$parenttitle);but can do thisreturn array('slug'=>"$parentslug",'title'=>$parenttitle);others all fine
Yes you can. $array['slug'] will contain '$parentslug'
yup,one thing you should not forget syntax errors are easier to detect but logical errors like that will keep for busy for nothing.....:)so keep it for the day ...when you feel bored....:D(long investigation ...why is my array not working...):D:D