Posts by David Anilton • 1 point
2 posts
-
0
votes2
answers33
viewsA: identify a value in the key of an array
If it’s useful to someone. I don’t know if it’s the smartest way, but I did so. #verificando quantas post 'p' tem foreach($_POST as $k => $v) $perm[trim(substr($k, 1, 4))] = $v; //ordenando as…
-
-2
votes2
answers33
viewsQ: identify a value in the key of an array
The return of values stored on array $_POST is this: array(373) { ["ativar1"]=> string(17) "Ativar Permissões" ["copiar1"]=> string(0) "" ["p0"]=> string(1) "M" ["p1"]=> string(1) "N"…