Variable in PHP can be declared anywhere in the script. So the scope of the variable is defined by where it can be accessed in the script.In other words, it is the context where a variable is defined and accessed. PHP has three different kinds of scopes: Local Scope Global Scope Static Scope Local Scope […]
See MorePHP Variable Types
PHP had different data types according to the values assigned to it. Like simple string, numeric types, arrays, and objects. PHP supports the following data types: Integer String Float Boolean Array Object NULL Resource Integers Integers are whole numbers without a decimal point. <?php $x = 200; // decimal number var_dump($x); echo "<br>"; $y = […]
See MoreJavaScript Operators
Javascript operators are symbols or keywords which perform certain actions when added to a particular expression. For example, the add (+) symbol is an arithmetic operator that is used to add two variables, while the greater-than (>) or less-than (<) symbols are the comparison operators that tells the JavaScript engine to compare two values. Assignment […]
See MoreJavaScript Variables
Variable are important aspects of any programming language. Variables in javascript are named container, which is used for storing information. In javascript, the variable data can we assign, modify, and update with the help of the variable name. Use a var keyword to create a new variable and then an assign(=) operator to assign a […]
See MorePHP Variables
Variables are names given to the location in memory, and these locations are used to store information. Creating PHP Variables The PHP variable always starts with a $ sign, followed by the variable name. Example:- <?php $name = "jack"; $age = 21; $height = 6.1; ?> After execution of this code, the variable $name holds […]
See MoreComments in PHP
PHP Comments are line embedded in the code, which is not executed by the server. Commenting on your code is a good habit if you are dealing with some big projects. Commenting helps others to understand your code easily, and it’s also helpful if you are checking your code after a long time. Think of […]
See MorejQuery Introduction
jQuery is a feature-rich, fast, and lightweight Javascript library. jQuery saves your time by simplifying JavaScript code. The use of jQuery simplifies the task of event handling, traversing, animating, and Ajax interactions for quick web development. List of important features supported by jQuery:- Event Handling – With jQuery you can capture a variety of events […]
See MorePython Introduction
Python is an object-oriented programming language first released in 1991. Uses of Python: Software development Web development Mathematics System scripting Why to Learn Python? Python is a very high-level interactive programming language. Today Python is used in the software and web development fields for creating complex problem-solving solutions. Python can work on different platforms (Windows, […]
See MoreThe Basic PHP Syntax
PHP was created to work with the HTML code so that it can be easily embedded in the HTML pages. When you create a PHP file without adding any HTML tags, then it is called a pure PHP file. If you execute a PHP code on the server, then the plain HTML output is sent […]
See MoreServer and PHP Installation
PHP is a server-side scripting language used to create dynamic websites and applications. A web server is required to run the PHP code. So to learn PHP you have to daily work on running PHP code on the server. Working with an online server for daily learning is not a good option. For the learning […]
See More