What is php?
PHP is an acronym for "PHP: Hypertext
Preprocessor"
PHP is a widely-used, open source scripting
language.
PHP scripts are executed on the server.
PHP is free to download and use.
Type Casting
echo ((0.1 + 0.7) * 10);
echo (int) ((0.1 + 0.7) * 10);
//Outputs 8
//Outputs 7
Variables
Variables are temporary storage containers.
In PHP, a variable can contain any type of data, such
as, for example, strings, integers, floating numbers,
objects and arrays.
PHP is loosely typed, meaning that it will implicitly
change the type of a variable as needed, depending
on the operation being performed on its value.
This contrasts with strongly typed languages, like C
and Java, where variables can only contain one type
of data throughout their existence.
SpringPeople Software Private Limited, All Rights Reserved.
More Details
Our Partners