Archive for June, 2019

PHP User Defined Function Syntax & Example Code with Return Parameter

PHP Factorial Function PHP User Defined Functions PHP User Defined functions mean that a function which is created by a user. The declaration of the user-defined function will start with the “function” keyword. Syntax of PHP user defined function deceleration Note: The name of the function must be started with a character and underscore not to be with […]

PHP Variable Scope Local, Global and Static in Function Example Code

PHP Local Variable Scope PHP Variable Scope The scope is a boundary or limit where you can access the variable and it depends on the type of the variable. PHP supports local, global and static variable types. Local Variable Scope Local Scope means the variable is accessible within the same function where it is created. Example 1 – Local […]

PHP Array with Numeric Indexed Values

PHP Array With Loop PHP Array PHP Array is used to store more than one element which is identified by the index. In PHP Arrays are of three types – Index arrays Associative arrays Multidimensional arrays Caution:To create an array you have to use array() function. PHP Index Array In PHP Index Array the data will be stored and […]

PHP Associative Array or String Indexed Example Code foreach Loop

PHP Associative Array PHP Associative Array PHP Associative Array is also used to store more than one element and which is identified by the string. It also knowns as string indexed array. Syntax Of Associative Array creation and accessing. The above syntax are used to create an associative array. The above syntax have 2 different ways to create […]

PHP Multidimensional Array in Numeric Indexed Value Example

PHP Multidimensional Array with echo PHP Multidimensional Array PHP Multidimensional Array means array inside an array. Or An array containing more than one array. Its structure behaves like metrics. In Multidimensional array, the data are stored in a tabular form (row-column formate). Syntax of Multidimensional Array in PHP Note:The var_dump() and print_r() are the two functions which are used to […]

PHP Array Functions & Example of Add, Reverse, Search, Count, Replace

PHP Array Replace PHP Array Functions Array Function is used to perform the basic task in an array for example count(), array sum(), array search and many more. List of popular pre-defined Array Functions Fuctions Description array() To create an array. count() To known the number of elements inside an array. array_sum() To get the addition of values […]

PHP Array Sort Functions Code Example for Sorting by Key or Value

PHP Array Sort by key PHP Array Sorting PHP Array Sorting means to arrange the elements of the array in a particular(ascending or descending or alphabetically) order. PHP has some array sorting functions to sort the array. PHP Array Sorting Functions PHP have some built-in sorting functions for array and these functions are used to sort the elements of the […]

PHP Date and Time Function Syntax and Format String Example Code

PHP Time Format PHP Date and Time Function The date() and time() function is used to set the format of the date and time. By the date() function, you can set both format date and as well as time PHP date() Function The PHP date() is used to set the format of the date as well as time […]

PHP Include or Require File Function and Difference Between The Two

PHP include VS require PHP Include File Function PHP Include is used to embed a PHP File into another File. Mainly it is used to add the library of user-defined functions. Example 1 – Include File Code to Embed Scripts In the above example, we have created 2 PHP files and one PHP file will be called into another […]

PHP Superglobal or Super Global Variables Uses and Example

PHP Superglobals PHP Superglobal Variables The scope of the superglobal variables is everywhere. List of variables in a particular super global variables depends on the state of the PHP application. PHP have Predefined “Super Global” variables for some specific purpose. Below list shows PHP superglobal variables- $GLOBALS $_SERVER $_REQUEST $_POST $_GET $_FILES $_ENV $_COOKIE $_SESSION PHP $GLOBALS […]

PHP Cookies Use, Application in Example Code to Set, Delete, setcookie

Set Cookie in PHP PHP Cookies By default PHP is a stateless application means you can not track the activity of a user during the accessing of different web pages of the web site. With the help of the cookie, you can set some variable to track the user state. PHP cookie is a Super Global and used to […]

PHP Session Use, Application Example to start, destroy, unset, id

PHP Session Start PHP Session On the internet, the web server does not have any information which user visit the page or how many times. To track the information about the visitor or users which can visit the multiple web pages, during the accessing of multiple pages sessions are generated. Caution: Session variables are stored on the web […]

PHP Form Handling or Processing in Application with Example Code Syntax of Submit Data

PHP Form Handling PHP Form Handling or Processing The form submitted by the client machine to the web server is actually received by a PHP script file, and it is known by action attribute of the form tag. The PHP Web server will store all the parameters received from the form in the $_GET or $_POST Global array. […]

Arduino LED Blink Or Control Code With Digital Output Pins and digitalWrite, pinMode Function

Arduino LED Blink Code or Project LED blinking or toggle program is one of the basic practice to test everything working properly. In the blinking program digital pins are on and off continuously with a delay. Arduino Uno is one of very popular board these days, and it is having a build-in LED on pin […]

Arduino Turn LED On And Off with Button or Switch Control Digital Input with digitalRead Function

Arduino Turn LED On And Off With Button Controlling a LED with button is one of important learning because it cover “How to take digital input”. Second learning is if decision logic application. Arduino Turn LED On And Off With Button code uses three main functions digitalWrite, digitalRead and pinMode. Digital input pins are used […]

MySQL Introduction

MySQL Introduction MySQL is one of the popular Database Management System. The full form of MySQL is Structured Query Language. The data are stored in a table form in MySQL. Every column has a specific data type that you can specify during the creation of the table. You can perform the opertions such are – […]

phpMyAdmin Introduction and Create & Open the Database

How To Open phpMyAdmin phpMyAdmin Introduction phpMyAdmin is one of the most popular applications of the MySQL Database Management System(DBMS). It is an interface to interact with MySQL Database. With this software, you can create, delete, alter, drop, import and export the MySQL database. Caution: If you work on the local machine than you have to install the XAMPP […]

phpMyAdmin Create Table

Structure Of Created Table phpMyAdmin Create Table MySQL Stored data in the table form or row-column format. So you have to create a table first in the phpMyAdmin interface. Step 1 – To create a table you have to create a database first. After creating a database you have to write table name to the Name block and select […]

Arduino Button or Switch Interface Circuit without Pull Up Resistor

Arduino Button or Switch Interface Circuit To take digital input we have to interface button or switch with the Arduino board. Interfacing switch is requires a resistor and it is known as pull up resistor. Figure 1 below shows the circuit diagram of button interfacing. It is having a 10k resistance which is connected with […]

How to Use phpMyAdmin and How select, insert, update, delete and drop table

phpMyAdmin Insert How to Use phpMyAdmin Through phpMyAdmin, you can perform many operations like insert, select, update, delete and drop in the table. These operations are done through the SQL Queries. How to Insert in phpMyAdmin If you want to add the new information to a column then you have to use insert SQL Query. Step 1 […]

Arduino LED Fade Code with analogWrite function on Analog Output or PWM Pins of Uno Board

Arduino LED Fade with PWM Arduino LED Fade Code is used to test the PWM feature of board. Fading mainly uses analogWrite function on Analog Output Pins of Arduino Board. Arduino does not have DAC (Digital to Analog Converter) capability, but in place of DAC it is having PWM (Pulse Width Modulation) capability. The PWM […]

PHP MySQL Connection With MySQLi Example Code and mysqli_connect Function

PHP MySQL Connection How to Drop Table in phpMyAdmin From the PHP script if you want to access the MySQL Database you have to first create a connection to the database server with the help of mysqli_connect mysqli function. MySQL Examples in Both MySQLi and PDO Syntax In this, and in the following chapters we demonstrate three ways […]

PHP MySQL Create Table Query With MySQLi Example Code and MySQLi_query Function

Create a MySQL Table Using MySQLi The CREATE TABLE statement is used to create a table in MySQL. We will create a table named “User”, with five columns: “id”, “firstname”, “lastname”, “email_id” and “age”: Example – 1 Create a MySQL Table Example ` Important points of the table above: The data type specifies what type […]

Arduino Serial Communication Port Test Example with write and begin Function

Arduino Serial Port Communication Arduino Serial Communication is used to communicate over serial port with terminal devices over UART like PC. Understanding the serial communication in the Arduino is very important because these days many devices uses UART interface, like GPS, ESP8266, GSM and RFID modules. The UART serial communication is a full duplex, means […]

PHP MySQL insert Query Syntax into the Table with MySQLi Example Code

PHP Insert Data Into MySQL To insert a data in the MySQL database you have to use insert query. In other words Insert is used to add new records. Important points The string must be quoted. Numeric values must not be quoted. The word NULL must not be quoted. In the previous artical we created […]

Arduino Serial read, available Function Example and UART Loopback

Arduino Serial read available Function Example Code Arduino Serial read Arduino serial library have in-built function to receive the data over serial port. To test the receive function in Arduino you have to send data from PC/Laptop with serial monitor program. In this article we will tell you more about serial communication in the Arduino to implement receive function. Arduino library have […]

PHP MySQL select Query Syntax From the Table with MySQLi Example Code

PHP Select Data in MySQL To select data from the table select query is used. To select all row so you have to use ” * ” symbol. But if you want to select a particular row or column so you have to put the name of a particular row or column. Example – 1 […]

PHP MySQL update Query Syntax in the Table with MySQLi Example Code

PHP Update Data in MySQL To change the value of previously saved recode, we have to use the update query. In other words update query is used to update existing records. Caution:Here you have to use the where clause and where clause is used to define which records should have to update. If you can […]

PHP MySQL delete Query Syntax from the Table with MySQLi Example

PHP Delete Data in MySQL To delete the value of previously saved recode, we have to use the delete query. In other word, the delete query is used to deleting the existing records. Note:Here you also specify the where clause and where clause is used to define which records should have to delete. If you […]

Arduino Analog Input read from Pin with the help of analogRead function from Potentiometer

log Read t Arduino Analog Input or Read with analogRead Function Arduino board have build-in Analog To Digital Converter to take analog inputs. Arduino have a function called analogRead. Analog input features is required to interface analog sensors like, LM35 temperature sensor, LDR light sensor etc. Arduino UNO have 10 bit analog to digital converter. It means the […]
Learning & Certifications
Follow Us
Facebook Icon   Linked In Icon   Twitter Icon  
Validation and Recognition

Valid CSS! Valid HTML5!          Protected by Copyscape