Question: 3. Write a PHP script for each of the following questions: a) Suppose you are given an array color with some values. Write a PHP

 3. Write a PHP script for each of the following questions:

3. Write a PHP script for each of the following questions: a) Suppose you are given an array color with some values. Write a PHP script to get the first element of the array. $color = array (4 => 'white', 6 => 'green', 11=> 'red') Sample Output: white b) Suppose you are given a variable d which contains value A00 i.e. $d = 'A00'. Using this variable print the following numbers. Sample Output: A01 A02 A03 A04 A05

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!