02/07/2023
HTML CSS JS PHP Math
02/07/2023
06/06/2023
Smart way to query
06/06/2023
Index Practice
03/06/2023
What is the best method of find top 5 row.
03/06/2023
# select distinct(animals) from the picture.
# select count(animals) as noofanimals from picture....
02/06/2023
SQL Query
How to Install Python and Show Hello World.
Creating a Function
Although PHP’s vast assortment of function libraries is a tremendous benefit to anybody seeking to
avoid reinventing the programmatic wheel, sooner or later you’ll need to go beyond what is offered in
the standard distribution, which means you’ll need to create custom functions or even entire function
libraries. To do so, you’ll need to define a function using PHP’s supported syntax, which when written in
pseudocode looks like this:
function functionName(parameters)
{
function-body
}
For example, consider the following function, generateFooter(), which outputs a page footer:
function generateFooter()
{
echo "Copyright 2010 W. Jason Gilmore";
}
Once defined, you can call this function like so:
Now Comment the Result
Invoking a Function
----------------------------
More than 1,000 functions are built into the standard PHP distribution, many of which you’ll see
throughout this book. You can invoke the function you want simply by specifying the function name,
assuming that the function has been made available either through the library’s compilation into the
installed distribution or via the include() or require() statement. For example, suppose you want to
raise five to the third power. You could invoke PHP’s pow() function like this:
If you want to output the function results, you can bypass assigning the value to a variable, like this:
19/07/2022
Why name is not showing?
Q. If we want define style for an unique element, then which css selector will we use ?
A.Id
B.text
C.class
D.name
--------------------------
Q.Is it possible to declare font-weight, font-face & font-size by using ONLY ONE css propery ?
A.Yes, it's possible
B.No, not possible
---------------------------
Q.Which CSS property is used to control the text size of an element ?
A.font-style
B.text-size
C.font-size
D.text-style
Answer in comment..
HTML CSS JS Send a message to learn more