Learn Coding (WebDev Team)
@WebDevStuff
1.18K
subscribers
6
photos
124
videos
31
files
93
links
Web Development Articles, Tutorials and Other Resources.
Resources:
@WebDevStuff
Deals & Offers: OliviaMikayla
@anonymous_guy_bot
Main Group:
@WebDevChat
Github:
https://github.com/websitdev
Contact:
webdevchat.com
Download Telegram
Join
Learn Coding (WebDev Team)
1.18K subscribers
Learn Coding (WebDev Team)
15:
PHP is_bool() function
Telegraph
PHP is_bool() function
By using this function, we can check whether the variable is boolean variable or not. Syntax bool is_bool ( mixed $var ) Parameters Parameter Description Is compulsory var_name The variable being evaluated. compulsory Returns It return True if var is…
Learn Coding (WebDev Team)
16:
Integer
Telegraph
Integer
This data type holds only numeric values. It stores only whole number with no fractional component. The range of integers must lie between -2^31 to 2^31. Syntax Integers can be defined in decimal(base 10), hexadecimal(base 16), octal(base 8) or binary(base…
Learn Coding (WebDev Team)
17:
PHP is_int() function
Telegraph
PHP is_int() function
By using this function, we can check the input variable is integer or not. This function was introduced in PHP 4.0. Syntax bool is_int (mixed $var) Parameters Return type This function returns true if var_name is an integer, Otherwise false. Example…
Learn Coding (WebDev Team)
18:
Float
Telegraph
Float
This data type represents decimal values. The float (floating point number) is a number with a decimal point or a number in exponential form. Syntax $a=1.234; $x=1.2e4; $y=7E-10; Example 1 <?php $x=22.41; echo $x; ?> Example 2 <?php $a = 11.365; var_dump($a);…
Learn Coding (WebDev Team)
19:
PHP is_float Function
Telegraph
PHP is_float Function
By using this function, we can check that the input value is float or not. This function was introduced in PHP 4.0. Syntax bool is_float ( mixed $var ) Parameters Return type: The is_float() function returns TRUE if the var_name is float, otherwise false.…
Learn Coding (WebDev Team)
20:
Compound Types
Telegraph
Compound Types
There are 2 compound data types in PHP. 1. Array 2. Object Array: The array is a collection of heterogeneous (dissimilar) data types. PHP is a loosely typed language that?s why we can store any type of values in arrays. Normal variable can store single…
Learn Coding (WebDev Team)
21:
Special Types
Telegraph
Special Types
ᴰᵒᵖᵖᵉˡᵍᵃⁿᵍᵉʳ 多佩尔甘格尔 There are 2 special data types in PHP 1. Resource 2. Null Resource Data type: It refers the external resources like database connection, FTP connection, file pointers, etc. In simple terms, a resource is a special variable which…
Learn Coding (WebDev Team)
22:
PHP is_null() function
Telegraph
PHP is_null() function
By using the is_null function, we can check whether the variable is NULL or not. This function was introduced in PHP 4.0.4. SYNATX: bool is_null ( mixed $var ) Parameter Return Type: The PHP is_null() function returns true if var is null, otherwise…
Learn Coding (WebDev Team)
23:
PHP If Else
Telegraph
PHP If Else
ᴰᵒᵖᵖᵉˡᵍᵃⁿᵍᵉʳ 多佩尔甘格尔 PHP if else statement is used to test condition. There are various ways to use if statement in PHP. if if-else if-else-if nested if PHP If Statement PHP if statement is executed if condition is true. Syntax if(condition){ //code to be…
Learn Coding (WebDev Team)
24:
PHP Switch
Telegraph
PHP Switch
PHP switch statement is used to execute one statement from multiple conditions. It works like PHP if-else-if statement. Syntax switch(expression){ case value1: //code to be executed break; case value2: //code to be executed break; ...... default: code…
Learn Coding (WebDev Team)
25:
PHP For Loop
Telegraph
PHP For Loop
PHP for loop can be used to traverse set of code for the specified number of times. It should be used if number of iteration is known otherwise use while loop. Syntax for(initialization; condition; increment/decrement){ //code to be executed } Flowchart…
Learn Coding (WebDev Team)
26:
PHP While Loop
Telegraph
PHP While Loop
PHP while loop can be used to traverse set of code like for loop. It should be used if number of iteration is not known. Syntax while(condition){ //code to be executed } Alternative Syntax while(condition): //code to be executed endwhile; PHP While Loop…
Learn Coding (WebDev Team)
27:
PHP do while loop
Telegraph
PHP do while loop
PHP do while loop can be used to traverse set of code like php while loop. The PHP do-while loop is guaranteed to run at least once. It executes the code at least one time always because condition is checked after executing the code. Syntax do{ //code to…
Learn Coding (WebDev Team)
28:
PHP Break
Telegraph
PHP Break
PHP break statement breaks the execution of current for, while, do-while, switch and for-each loop. If you use break inside inner loop, it breaks the execution of inner loop only. Syntax jump statement; break; Flowchart PHP Break: inside loop Let's see…
Learn Coding (WebDev Team)
PHP Advance
1 :
PHP Functions
Telegraph
PHP Functions
PHP function is a piece of code that can be reused many times. It can take input as argument list and return value. There are thousands of built-in functions in PHP. In PHP, we can define Conditional function, Function within Function and Recursive function also.…
Learn Coding (WebDev Team)
2:
PHP Parameterized Function
Telegraph
PHP Parameterized Function
PHP Parameterized functions are the functions with parameters. You can pass any number of parameters inside a function. These passed parameters act as variables inside your function. They are specified inside the parentheses, after the function name. The…
Learn Coding (WebDev Team)
3:
PHP Call By Value
Telegraph
PHP Call By Value
PHP allows you to call function by value and reference both. In case of PHP call by value, actual value is not modified if it is modified inside the function. Let's understand the concept of call by value by the help of examples. Example 1 In this example…
Learn Coding (WebDev Team)
4:
PHP Call By Reference
Telegraph
PHP Call By Reference
In case of PHP call by reference, actual value is modified if it is modified inside the function. In such case, you need to use & (ampersand) symbol with formal arguments. The & represents reference of the variable. Let's understand the concept of call by…
Learn Coding (WebDev Team)
5:
PHP Default Argument Values Function
Telegraph
PHP Default Argument Values Function
ᴰᵒᵖᵖᵉˡᵍᵃⁿᵍᵉʳ 多佩尔甘格尔 PHP allows you to define C++ style default argument values. In such case, if you don't pass any value to the function, it will use default argument value. Let' see the simple example of using PHP default arguments in function. Example…
Learn Coding (WebDev Team)
6:
PHP Variable Length Argument Function
Telegraph
PHP Variable Length Argument Function
PHP supports variable length argument function. It means you can pass 0, 1 or n number of arguments in function. To do so, you need to use 3 ellipses (dots) before the argument name. The 3 dot concept is implemented for variable length argument since PHP…