Using array_flip() to return a string back to its original value : array_flip « Data Structure « PHP






Using array_flip() to return a string back to its original value

 
<?
    $string = "adsf";
    $translate = get_html_translation_table(HTML_ENTITIES);
    $translate = array_flip($translate);
    print_r($translate) ;
?>
  
  








Related examples in the same category

1.array_flip demo
2.array_flip( ) exchanges all the keys in that array with their matching values
3.array_flip() example
4.array_flip() function exchanges all key and element values for the array.