Deva Point

deva point

Our Latest Programming Tutorial

Easy To Learning

PHP | preg_match() function

preg_match() function preg_match function searches strings for patterns and it returns true when pattern is found and returns false if it doesn’t. Typically, search begins from the starting point of subject string. The parameter offset can be used to define the exact position from which to begin the search. Syntax: int preg_match( $pattern, $input, $matches, $flags, $offset… Continue reading PHP | preg_match() function

Published
Categorized as PHP

PHP is set() Function

PHP isset () is used to determine whether a variable has set or not. In other words, the PHP isset() function checks whether a variable set with unset() function. If it isn’t NULL, it won’t be set. If the testing variable has a NULL value, it returns false. Syntax of PHP is set() bool Iset… Continue reading PHP is set() Function

Published
Categorized as PHP

PHP for Loop

A for loop can be employed to determine in advance the number of times your script will run. PHP for loop can be very helpful when we want to loop over an array and then refer to a member of array by changing index. Suppose we have an array of odd numbers. To print them… Continue reading PHP for Loop

Published
Categorized as PHP

Array in PHP

An array contains multiple values in a single variable: Example The $cars array is an array(“Bolero”, “Alto”, “Safari”); echo “I like ” . $cars[0] . “, ” . $cars[1] . ” and ” . $cars[2] . “. “; ?> What is an Array in PHP? An array in PHP refers to a variable that holds… Continue reading Array in PHP

Published
Categorized as PHP

PHP Foreach Loop

The foreach PHP construct is the most efficient method of iterating all elements of an array. It is a function that works with arrays and objects too. While the foreach loop is able to iterate through an array, its execution is streamlined and completes the loop faster relative to. This allocates memory to index iterations,… Continue reading PHP Foreach Loop

Published
Categorized as PHP

Get the length of a string in PHP by using strlen function

To find out an estimate of the string’s length within PHP you can make use of the strlen() function. The string is passed as an the argument for strlen() and the function returns an integer that represents the length of the string. Syntax: strlen($string) Parameters Strlen() function can only accept one parameter, $string, which is… Continue reading Get the length of a string in PHP by using strlen function

Published
Categorized as PHP

What is PHP Programming Language?

PHP Hypertext Preprocessor (PHP) is an programming language that allows web developers to develop dynamic content that communicates with databases. PHP is used to develop web-based software applications. This guide will help you create your foundation using PHP. What is PHP Programming? The word PHP is an abbreviation for PHP Hypertext Preprocessor. PHP is a… Continue reading What is PHP Programming Language?

Published
Categorized as PHP