2082 1

Web Technology II208210 marksLoosely typed language characteristics

Why is PHP a loosely typed language? How is the for loop different from the foreach loop? Write a PHP program to demonstrate the use of both loops.

Why is PHP a loosely typed language? How is the for loop different from the foreach loop? Write a PHP program to demonstrate the use of both loops.[10]

--- PHP is called a loosely typed (or dynamically typed) language because: - Variables do not require explicit data type declaration - The data type of a variable is automatically determined at runtime based on the value assigned to it - The same variable can hold different types of values at dif...

Up nextHow are indexed arrays different from associative arrays? Write a PHP program to demonstra