logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Why we use array_flip


  • Correct Answer
  • array_flip exchange the keys with their associated values in array ie Keys becomes values and values becomes keys "php","course2"=>"html"); $new_array = array_flip($arrayName); print_r($new_array); ?> OUTPUT : Array ( [php] => course1 [html] => course2 ) 


  • Technology problems


    Search Results


    • 1. How to open a file?
    • Discuss
    • 2. What?s the difference between htmlentities( ) and htmlspecialchars( )?
    • Discuss
    • 3. For printing out strings, there are echo, print and printf. Explain the differences.
    • Discuss
    • 4. Would you initialize your strings with single quotes or double quotes?
    • Discuss
    • 5. How do you call a constructor for a parent class?
    • Discuss
    • 6. What is a .htacces file
    • Discuss
    • 7. Can we use include ("xyz.PHP") two times in a PHP page "index.PHP"?
    • Discuss
    • 8. How can we get the browser properties using PHP?
    • Discuss
    • 9. What is the maximum size of a file that can be uploaded using PHP and how can we change this?
    • Discuss
    • 10. How can we find the number of rows in a result set using PHP?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment