Answers for "convert a key to string in php"

PHP
1

convert key to value php

<?php
$input = array("oranges", "apples", "pears");
$flipped = array_flip($input);
print_r($flipped);
?>
  
// output
Array (
    [oranges] => 0
    [apples] => 1
    [pears] => 2
)
Posted by: Guest on March-12-2021
1

php key value array to string

$requestAsString = print_r($_REQUEST, true);
Posted by: Guest on September-22-2021

Code answers related to "convert a key to string in php"

Browse Popular Code Answers by Language