Search for notes by fellow students, in your own course and all over the country.

Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.

My Basket

Quadratic Equations£2.50

Fractions£1.00

Math chapter 02£6.75

Total£10.25

Title: php notes
Description: 2 marks que & ans for exams

Document Preview

Extracts from the notes are below, to see the PDF you'll receive please use the links above


1
...
It is a popular server-side scripting language used
for web development
...

2
...
Both are used to output data, but "echo" can output
multiple values separated by commas, while "print" can only output a single value
...

3
...
It returns true if
the variable exists and has a value, and false otherwise
...

4
...
The GET method
sends form data as part of the URL, visible in the address bar
...

Both methods can be used depending on the requirements of the form
...
Explain setcookie ( ) in PHP
...
Cookies are
small pieces of data stored on the client-side that can be used to remember user
preferences or track user sessions
...

6
...
It allows you to store information about a user's session, such as
their username, preferences, or shopping cart items
...

7
...

I'm sorry, but the "split()" function in PHP has been deprecated since PHP 5
...
0 and removed in
PHP 7
...
0
...

However, you can achieve the same functionality using the "explode()" function in PHP
...
What does PEAR stands for?
PEAR stands for PHP Extension and Application Repository
...
PEAR provides a structured approach to package
management in PHP, allowing developers to easily share and reuse code
...

9
...
It is commonly used for debugging purposes, as it helps
you understand the structure and values stored in complex data types
...


10
...

When you unset a variable, its memory is freed up, and the variable is no longer accessible
...
This can be useful when you want to remove unnecessary data or
release resources associated with a variable
...
List the types of array
...
You can access elements using their index
...

You can access elements using their keys instead of numeric indices
...
They can be
used to represent complex data structures, such as matrices or tables
...
What are different arithmatic operators in PHP?
- Addition (+): Used to add two numbers together
...

- Multiplication (*): Used to multiply two numbers
...

- Modulus (%): Used to find the remainder of a division operation
...

13
...
It serves as a blueprint for
other classes and can contain both abstract and non-abstract methods
...
Abstract classes are useful when you want to define
common functionality that should be shared among multiple classes
...
Define sticky form
...
This is useful when you want to provide a better user experience and prevent users
from having to re-enter all the form data in case of errors or validation failures
...

15
...
In the context of web development, it often involves validating
form input to ensure that it is correct, complete, and safe
...

16
...
It allows you to specify the starting index and length of the desired portion
...

17
...
what is the use of session?

The `session` in PHP is used to store and manage user-specific data across multiple requests
...
This can be useful for maintaining user login status, storing shopping cart
information, or tracking user preferences
19
...
When this attribute is added to the `