![]() Write a PHP program to display all palindrome numbers between 100 and 200. Write a PHP program to display the multiplication table of 5. Plus Two Computer Science Chapter Wise Practice Questions and Answers Open Internet Explorer and type the following in the address bar Take another notepad and type the following and save it as fact.php in C:\Abyss Web Server\htdocs Take a note pad and type the following and save it as fact_form.html in C:\Abyss Web Server\htdocs The difference between GET and POST method is given below. Write a function in PHP to find the factorial of a (3) Resources: It is not an actual data type rather it is a special variable that hold references to file handler, data base object, etc.Ĭreate an HTML form in PHP showing the difference of the GET and POST method.At first a class is declared and then objects can be created using the command ‘new’. Object: Similar in C and must be declared explicitly.With the same name we can store many elements. Array: Array is a collection of elements. ![]() This is the default value to a variable, if we do not set a value to it. Null: Special data type with value NULL.(1)ĭiscuss about special data types used in PHP. “, “ Ī web server that supports PHP on any operating system is _. This array is called associative array “Ajay”, “Son” => “Arjun”, “Daughter” = > “Archana”) įoreach($family as $key =>$name) echo “$key – $name”. ![]() Write a for each loop that prints all the array elements. Syntax: $array_name=array(valuel ,value2 ) Īn array in PHP is given as follows: In PHP the function array() is used to create an array. by the indices and the index of the first element is zero. Indexed arrays-: The elements in an array can be distinguished as first or second or third etc. ![]() Unlike C , in PHP we can use either non-negative integers or strings as keys. (3)Ī) In PHP array is a collection of key and value pairs. Write a PHP program to display the perfect numbers below 100. (2)ī) Write a PHP program to display prime numbers below 50. Kerala Plus Two Computer Science Chapter Wise Previous Questions and Answers Chapter 10 Server Side Scripting Using PHPĪ) Compare Indexed and associative arrays in PHP. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |