PHP Hypertext Preprocessor - Study24x7
Social learning Network

Welcome Back

Get a free Account today !

or
PHP Hypertext Preprocessor Cover image
PHP Hypertext Preprocessor
PHP Hypertext Preprocessor
  • Followers
  • Latest Feeds
  • Articles
  • Question
  • Course
  • About
  • Review
Interests
Databases XML Technologies Computer Programming Web Development ...
11 followers study24x7 16 Mar 2021 11:01 AM study24x7 study24x7

PHP Variable Scope PHP has three types of variable scopes: 1.) Local variable 2.) Global variable 3.) Static variable Local variable :- The variables that are declared within a function are called local variables. => These local variables have their scope only in that particular function in which they are declared. => These variables cannot be accessed outside the function, as they have local scope. Global variable :- The global variables are the variables that are declared outside the function. => These variables can be accessed anywhere in the program. => To access the global variable within a function, use the GLOBAL keyword before the variable. => However, these variables can be directly accessed or used outside the function without any keyword. Static variable :- Static variables exist only in a local function, but it does not free its memory after the program execution leaves the scope. => It is a feature of PHP to delete the variable, once it completes its execution and memory is freed. => Sometimes we need to store a variable even after completion of function execution. => Therefore, another important feature of variable scoping is static variable. => We use the static keyword before the variable to define a variable, and this variable is called as static variable.

study24x7
Write a comment
11 followers study24x7 16 Mar 2021 10:39 AM study24x7 study24x7

PHP Variables A variable is declared using a $ sign followed by the variable name. Here, some important points to know about variables: 1.) As PHP is a loosely typed language, so we do not need to declare the data types of the variables. It automatically analyzes the values and makes conversions to its correct datatype. 2.) After declaring a variable, it can be reused throughout the code. 3.) Assignment Operator (=) is used to assign the value to a variable. Syntax of declaring a variable in PHP is given below: $variablename=value;

study24x7
Write a comment
11 followers study24x7 01 Nov 2019 02:38 PM study24x7 study24x7

Honesty is a best Policy.

study24x7
Write a comment
11 followers study24x7 29 Oct 2019 03:22 PM study24x7 study24x7

Features of PHP

Features of PHP
study24x7
Write a comment
11 followers study24x7 29 Oct 2019 09:59 AM study24x7 study24x7

Data Types in PHP

Data Types in PHP
study24x7
Write a comment
11 followers study24x7 02 Aug 2019 06:22 PM study24x7 study24x7

study24x7
Write a comment
11 followers study24x7 03 Jul 2019 05:33 PM study24x7 study24x7

About PHP

About PHP
study24x7
Write a comment
About

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.
See More

Ratings
0.0
out of 5
0 Ratings
5 study24x7
 
0.0
4 study24x7
 
0.0
3 study24x7
 
0.0
2 study24x7
 
0.0
1 study24x7
 
0.0
Related Pages

Topline Coaching

3676 followers

General Science and ..

3023 followers

Just Asking - Lets c..

2265 followers

Daily Current Affair..

2048 followers

Learn N Share - Get ..

1915 followers

General Knowledge An..

1839 followers

English with Astute ..

1836 followers

GOVERNMENT JOB NOTIF..

1683 followers

RAU IAS COACHING

1588 followers

SSC 2021 Preparation..

1517 followers

Uphaar Classes - By ..

1495 followers

UPSC Civil Services ..

1458 followers

Ashok Meena

1363 followers

Psychology decoded

1351 followers

TARGET SUCCESS

1294 followers

Study24x7

1089 followers

UPSC & State PSC..

993 followers

Abhiyan Civil Servic..

1006 followers

Maths

852 followers

Reasoning with Rizwa..

780 followers

Maths By Uttam Sir

771 followers

Results Alert

740 followers