Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

ASSIMENT 2.

1 FUNCTION

Student Name :Vicky morya                                        UID:20BCA1517

Branch:BCA                                                                          
Section/Group:BCA3/-B

Semester:5TH                                                                      date :20-October 2022

Subject Name: Web technology                                                      Subject Code:20CAP-311

1 How to use php function

A function is a block of code written in a program to perform some specific task. We can relate
functions in programs to employees in a office in real life for a better understanding of how functions
work. Suppose the boss wants his employee to calculate the annual budget. So how will this process
complete? The employee will take information about the statics from the boss, performs calculations
and calculate the budget and shows the result to his boss. Functions works in a similar manner. They
take informations as parameter, executes a block of statements or perform operations on this
parameters and returns the result.

PHP provides us with two major types of functions:

2 which is user defined function

User-defined functions are functions that you use to organize your code in the body of a policy. Once
you define a function, you can call it in the same way as the built-in action and parser functions.
Variables that are passed to a function are passed by reference, rather than by value.

3 what is passing parameters by values


When you use pass-by-value, the compiler copies the value of an argument in a calling function to a
corresponding non-pointer or non-reference parameter in the called function definition. The parameter
in the called function is initialized with the value of the passed argumen

4 What is the build function?

Building converts a package source directory into a single bundled file. If binary = FALSE this creates a
tar. gz package that can be installed on any platform, provided they have a full development
environment (although packages without source code can typically be in installed out of the box).

5 what is the mathematics function

A mathematical function is a rule that gives value of a dependent variable that corresponds to specified
values of one or more independent variables. A function can be represented in several ways, such as by
a table, a formula, or a graph.

6 What are string function

Most current programming languages include built-in or library functions to process strings. Common
examples include case conversion, comparison, concatenation, find, join, length, reverse, split, substring,
and trim. tolower() , toupper() , etc. ToLower() , ToUpper() , etc.

7 What are array functions?

Array Functions in C is a type of data structure that holds multiple elements of the same data type. The
size of an array is fixed and the elements are collected in a sequential manner. There can be different
dimensions of arrays and C programming does not limit the number of dimensions in an Array.
What are time functions?

Returns the decimal number for a particular time. If the cell format was General before the function was
entered, the result is formatted as a date. The decimal number returned by TIME is a value ranging from
0 (zero) to 0.99988426, representing the times from 0:00:00 (12:00:00 AM) to 23:59:59

What are date formats


.

Format Date order Description

K Yr, Month D Year-Month name-Day (2009, February 17)

L* Mon-DD-YYYY Month abbreviation, Day with leading zeros, Year (Feb 17, 2009)

M* DD-Mon-YYYY Day with leading zeros, Month abbreviation, Year 17 Feb, 2009.

You might also like