{ "key_pair_value_system": true, "answer_rating_count": "", "question_feedback_html": { "html_star": "", "html_star_feedback": "" }, "answer_average_rating_value": "", "answer_date_js": "2024-08-27T07:14:53-04:00", "answer_date": "2024-08-27 07:14:53", "is_docs_available": null, "is_excel_available": null, "is_pdf_available": null, "count_file_available": 0, "main_page": "student_question_view", "question_id": "8493604", "url": "\/study-help\/questions\/1-print-out-information-of-php-use-phpinfo-function-2-8493604", "question_creation_date_js": "2024-08-27T07:14:53-04:00", "question_creation_date": "Aug 27, 2024 07:14 AM", "meta_title": "[Solved] 1. Print out information of PHP use phpin | SolutionInn", "meta_description": "Answer of - 1. Print out information of PHP use phpinfo() function. 2. Write a program that check and print odd \/ even numbers (fr | SolutionInn", "meta_keywords": "1,print,information,php,phpinfo,function,2,write,program,check,odd,\/", "question_title_h1": "1. Print out information of PHP use phpinfo() function. 2. Write a program that check and print odd \/ even numbers (from number 1 to", "question_title": "1. Print out information of PHP use phpinfo() function. 2. Write a", "question_title_for_js_snippet": "1 Print out information of PHP use phpinfo() function 2 Write a program that check and print odd even numbers (from number 1 to 100 using for while loop) Display the results within an HTML table with 2 columns as shown below NUMBERS RESULTS 1 ODD 2 EVEN 3 ODD HINT use tags to create a table, tags for Numbers and Results Wrap code PHP inside HTML code For example CHECK ODD or EVEN 3 Do the following steps in one php file and try to manage the output to be clear to see a Create a dimensional associative array that has at least 8 key element pairs and var dump() the array b Print out the array in a table with keys and values (like you do in question 1) c Use assort() function to sort the array in ascending order based on the value and var dump() the new array d Use unset() function to remove an element by key from the array then print the modified array by use var dump() function HINT unset($my array key ) 4 Create a two dimensional array that contains the following information about twitter users (HINT the second dimension should be associative, with keys username, tweets, followers, following ) These refer to the number of tweets the user tweeted, how many followers the user has and how many other users this user is following (The first dimension can be indexed, and you can add Username to the second dimension, or you can have both dimensions be associative, where the Username points to the first person etc In this case the key joeDoe, for example, has the value array(tweets 20000,followers 45,following 8) User name Tweets Number of Followers Following joeDoe 20000 45 8 JohnD 62000 123 160 computerSavy 75 1 25 myTwitterAccount 1800 15 6 a Print out the array in HTML format using table tags b Sort the array by tweets and print out in table format", "question_description": "
tags for Numbers and Results. Wrap code PHP inside HTML code. For example:<\/div> <\/div> <\/div>
|
---|