[Solved] How do I append a value to an array within an array in PHP? [duplicate]


You could use array_push to push additional items like so:

array_push($options['systems'], 4);

Or the shorthand version:

$options['systems'][] = 4;

1

solved How do I append a value to an array within an array in PHP? [duplicate]