Answered step by step
Verified Expert Solution
Question
1 Approved Answer
.Variable created outside of function in the main script are available within the function. (Explain by giving an example) a/ is it possible to include
- .Variable created outside of function in the main script are available within the function. (Explain by giving an example)
- a/
- is it possible to include HTML in a PHP script file?explain by giving an example
- here is a constant: define (LocalHost,127.0.0.1);
- which one of the following is the correct way to refer to the above constant?
- LocalHost
- b.$LocaolHost
- how many times will I love PHP programming!be printed in the following program segment?
- $count = 0
- While ($count<10)
- eco
- the PHP function isset() only returns false if a parameter name is missing. It still returns true if the parameter name exists. True or false
- Data submitted through the HTTP post method is store in array $_POST. True or false
- Create an array and call it products that will contain the following key and value pairs:
- i.iphone :699
- j.blackberry :300
- k.Samsung :799
- l.Nokia : 120
- use a foreach loop to display the content of this array. Make sure to display both the key and value.
- What will be the output of the following script?
- $numbers = [100 , 200 ,300,400] ;
- $values = array(Hello,world,from,csci2006 );
- For ($i < count ( $numbers) ; $i++)
- {
- echo numbers[$i] = .$numbers[$i] .
; - echo values[$i] .
;
- echo numbers[$i] = .$numbers[$i] .
- }
- ?>
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started