<?php # The initial array with its string elements. $array = ["SecRuleEngine On", "SecRequestBodyAccess On"]; # Explode each element at the space producing array with 2 values. $new_array = array_map(function ($current) { return explode(" ", $current); }, $array); # Print the new array. var_dump($new_array); ?>
You have javascript disabled. You will not be able to edit any code.