- array_map: documentation ( source)
- var_dump: documentation ( source)
- array_fill: documentation ( source)
<?php
$strs = [
"some string",
"another string",
];
$result = array_map(null, $strs, array_fill(0, sizeof($strs), true));
var_dump($result);