I have in php script large quantity variables. How is optimality, save this data in individual variables
$a = "aaa";
$b = "bbb";
$c = "ccc";
or in associative array?
$mas = array("a"=>"aaa","b"=>"bbb","c"=>"ccc");
which method is better? or no difference?
It depends.
It’s better to make an array for variables within the same context.
Example:
You can store all your config variables into an array. Of course other variables needed for the execution of your script shouldn’t be there.