Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Php
Language Basics 104 codes
Home
Php
Language Basics
1 $b is assigned a copy of $a, and in the second part, $b is assigned a reference to $a
2 $GLOBALS with property
3 & operator creates a reference
4 __FILE__
5 __LINE__
6 A comment is text in a script that is ignored by the PHP engine
7 A First PHP Script
8 A PHP Script Including HTML
9 A properly set-up PHP variable
10 A static variable remembering its last value
11 Accessing Global Variables with the global Statement
12 Add an PNG image to the image you generated
13 Assertion Options
14 Assign reference to a variable
15 Assigning a Variable by Reference
16 Automatic Type Conversion
17 Basic PHP Start and End Tags
18 Calculate the variable name for simpler variables and use that name to access the value of that variable
19 Changing the Type of a Variable with settype()
20 Check the modulus of the two values and print the result
21 Combine three types of comment signs
22 Create a reference to a variable with the name of the constants value
23 Create global variables
24 Create PNG file
25 Define statement
26 Defining a Constant
27 Defining Variable Scope
28 Difference between instanceof and is_subclass_of( )
29 Drawing a Polygon with imagefilledpolygon()
30 Embedding multiple PHP scripts in a single document
31 Functions to Check Data Type
32 Functions to Convert Data Types
33 Functions to Test Data Types
34 Gettype() and settype()
35 Global vs function level
36 GMP Functions
37 Hello, World!
38 HTML and PHP together
39 In PHP, everything between and is considered a comment
40 Instruction separation
41 IsSet variable
42 Keywords and function names are case insensitive
43 Local variables
44 Looping Through the $GLOBALS Array
45 Magic Constants
46 Mixed-Mode Processing
47 Modifying a Variable with $GLOBALS
48 More Working with Variable Scope
49 Multiline comments
50 Multiline comments begin with a forward slash followed by an asterisk () and end with an asterisk followed by a forward sl
51 Multiple start and end tags
52 Numbers
53 Numeric Data Types
54 Only named variables may be assigned by reference
55 Opening and Closing Code Islands
56 Operating on variables
57 Overriding Scope with the GLOBALS Array
58 Passing arrays by reference
59 Passing by Reference in PHP
60 PHP 5 Data Types
61 PHP 5 variable functionality
62 PHP comments are usually preceded by double slashes
63 Php more than single line comment
64 Php single line comment
65 PHP Superglobal Arrays
66 PHP supports C, C++ and Unix shell-style comments
67 PHP supports trigonometric and logarithmic operations
68 Php tag
69 PHP Variable Examples
70 Scope of a Variable
71 Set new value into GLOBALS values
72 Shell style comments
73 Short circuit syntax
74 Spaces, tabs, and blank lines in between statements have no effect
75 Spacing
76 Static variables
77 Stopping Page Execution
78 Test of PHP Includes
79 Testing the Type of a Variable
80 The global statement is used
81 The isset() Function
82 To output all information
83 UnSet array element
84 Unset reference variables
85 Unset variable
86 Unset() Function
87 Use static variable defined in function
88 Use variable defined outside function
89 Using include()
90 Using include() to Execute PHP and Assign the Return Value
91 Using include() Within a Loop
92 Using the @ operator to suppress a warning about the undefined variables
93 Using the assert() Function
94 Using the global Statement to Remember the Value of a Variable Between Function Calls
95 Using the instanceof Operator
96 Using the static modifier to change a member or method so it is accessible without instantiating the class
97 Using the static Statement to Remember the Value of a Variable Between Function Calls
98 Valid and invalid variable names
99 Valid statements
100 Variable References Demo
101 Variable Scope
102 Variable Scope in Functions
103 Variables Defined Outside Functions Are Inaccessible from Within a Function by Default
104 Working with Static Variables in Functions