Home » Archives for iamshimantadas

iamshimantadas

Arrays in PHP

Array – array is a linear data structure which stores same data elements into contiguous way. Let’s say, we have an array of 4 elements. The elements are 22, 34,-65, 8. Stored elements into array cells or block. Ans – So, size/length of the array will = 4. The graph of array will – Elements            …

Read More

PHP variable scope

The scope of a variable is the context within which it is defined. For the most part all PHP variables only have a single scope. This single scope spans included and required files as well. For example: <?php$a = 1;include ‘b.inc’;?> Here the $a variable will be available within the included b.inc script. However, within…

Read More

Shell & form I/O in PHP

In PHP we can get inputs by several ways. But generally most users preferred to provide inputs via HTML form to a PHP file. But we can also get input via ‘Interactive shell’ also. Interactive shell Via this shell we can gets input from user. It’s work like inputs via command-line (windows) and terminal (Linux…

Read More

Introduction to PHP

PHP is a server side scripting language. PHP is widely used all over the internet for build web-pages and many web-applications including banking/financial, CMS (Content Management System) and others.PHP known as ‘hypertext pre-processor’. It’s mostly used for creating dynamic web-pages. It handles HTTP requests between client-side (browser) and server-side. Why PHP does is better than…

Read More