{ "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": "
1. Print out information of PHP use phpinfo() function.<\/div>
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:<\/div>
<\/div>
NUMBERS<\/div>
RESULTS<\/div>
1<\/div>
ODD<\/div>
2<\/div>
EVEN<\/div>
3<\/div>
ODD<\/div>
<\/div>
HINT: use tags to create a table,
tags for Numbers and Results. Wrap code PHP inside HTML code. For example:<\/div>
<\/div>
CHECK ODD or EVEN<\/title><\/div> <div><body><\/div> <div><table><\/div> <div><?php<\/div> <div>echo <tr><td>1<\/td><td>Odd<\/td><\/tr>;<\/div> <div>?><\/div> <div><\/table><\/div> <div><\/body><\/div> <div><\/html><\/div> <div> <\/div> <div>3. Do the following steps in one .php file and try to manage the output to be clear to see:<\/div> <div>a. Create a dimensional associative array that has at least 8 key\/element pairs and var_dump() the array.<\/div> <div>b. Print out the array in a table with keys and values (like you do in question 1).<\/div> <div>c. Use assort() function to sort the array in ascending order based on the value and var_dump() the new array.<\/div> <div>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]).<\/div> <div> <\/div> <div>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) <\/div> <div> <\/div> <div> <\/div> <div> <\/div> <div>User name<\/div> <div>Tweets<\/div> <div>Number of Followers<\/div> <div>Following<\/div> <div>joeDoe<\/div> <div>20000<\/div> <div>45<\/div> <div>8<\/div> <div>JohnD<\/div> <div>62000<\/div> <div>123<\/div> <div>160<\/div> <div>computerSavy<\/div> <div>75<\/div> <div>1<\/div> <div>25<\/div> <div>myTwitterAccount<\/div> <div>1800<\/div> <div>15<\/div> <div>6<\/div> <div> <\/div> <div>a. Print out the array in HTML format using table tags.<\/div> <div>b. Sort the array by tweets and print out in table format<\/div> <\/div>", "transcribed_text": "", "related_book": { "title": null, "isbn": null, "edition": null, "authors": null, "cover_image": null, "uri": null, "see_more_uri": "" }, "free_related_book": { "isbn": "", "uri": "", "name": "", "edition": "" }, "question_posted": "2024-08-27 07:14:53", "see_more_questions_link": "\/study-help\/questions\/computer-science-programming-2022-November-11", "step_by_step_answer": "The Answer is in the image, click to view ...", "students_also_viewed": [ { "url": "\/study-help\/psychology\/describe-to-the-teacher-or-a-peer-orally-or-in-1987221", "description": "Describe to the teacher or a peer (orally or in writing) the way they approached an assignment, the problems they encountered, the options they considered, and the final result.", "stars": 0 }, { "url": "\/lisa-meilo-works-for-pacific-company-which-pays-its-employees", "description": "Lisa Meilo works for Pacific Company, which pays its employees time- and- a- half for all hours worked in excess of 40 per week. Meilos pay rate is $ 37 per hour. Her wages are subject to federal...", "stars": 3 }, { "url": "\/study-help\/questions\/i-need-to-convert-the-class-counter-into-a-template-10030337", "description": "I need to convert the class Counter into a template. \/\/ File: main.cpp #include \"Counter.h\" #include using namespace std; int main() { Counter intCounter; Counter doubleCounter(1.0, 0.1); cout \n \n \n \n Answered: 1 week ago", "stars": 3 }, { "url": "\/study-help\/questions\/tesla-inc-casein-which-stage-of-industry-life-cycle-in-3150830", "description": "Tesla Inc Casein which stage of industry life cycle in the EV industry? what core competency is most important in this stage", "stars": 3 }, { "url": "\/study-help\/questions\/john-calls-because-his-mortgage-company-is-requesting-proof-of-1248326", "description": "john calls because his mortgage company is requesting proof of insurance for a two - family home he is purchasing that he plans to rent to tenants. what product best matches his needs?", "stars": 3 }, { "url": "\/study-help\/questions\/case-222-algo-plantwide-versus-departmental-overhead-rates-pricing-lo21-1473984", "description": "Case 2-22 (Algo) Plantwide versus Departmental Overhead Rates; Pricing (LO2-1, LO2-2, LO2-3, LO2-4] \"Blast it\" said David Wilson, president of Teledex Company. \"We've just lost the bid on the Koopers...", "stars": 3 }, { "url": "\/study-help\/questions\/1-conduct-a-research-online-and-analyse-the-approaches-use-1004417", "description": "1. Conduct a research online and analyse the approaches use in system documentation, problems, and propose possible solutions. Address the following: 1a. Discuss the specific recommendations that you...", "stars": 3 }, { "url": "\/study-help\/questions\/billing-charges-for-microsoft-365-commercial-licensing-when-a-customer-1003945", "description": "Billing charges for Microsoft 365 Commercial licensing. When a customer purchases a subscription and changes the amount during the subscription period, a full refund is credited then prorated for...", "stars": 3 }, { "url": "\/study-help\/questions\/barlow-company-manufactures-three-productsa-b-and-c-the-selling-1009136", "description": "Barlow Company manufactures three products-A, B, and C. The selling price, variable costs, and contribution margin for one unit of each product follow: A Product B C Selling price Variable expenses:...", "stars": 3 } ], "next_back_navigation": { "previous": "\/study-help\/questions\/quickbooks-company-setup-problem-1-at-the-start-screen-double-8493603", "next": "\/study-help\/questions\/you-want-to-test-whether-the-average-fuel-consumption-kilometers-8493605" }, "breadcrumbs": [ { "name": "Study help", "link": "https:\/\/www.solutioninn.com\/study-help\/questions-and-answers" }, { "name": "Computer Science", "link": "https:\/\/www.solutioninn.com\/study-help\/questions-and-answers\/computer-science" }, { "name": "Databases", "link": "https:\/\/www.solutioninn.com\/study-help\/questions\/computer-science-databases" }, { "name": "1. Print out information of PHP use phpinfo() function. 2. Write a", "link": "https:\/\/www.solutioninn.com\/study-help\/questions\/1-print-out-information-of-php-use-phpinfo-function-2-8493604" } ], "skill_details": { "skill_id": "656", "skill_name": "Databases", "parent_id": "8" } }