## How to add digits of a numeric series

We can print a numeric pyramid series and also can print the sum of every row using php code. We need two ‘for’ loops to print this pattern in php. First ‘for’ loop is used for rows and second ‘for’ loop is used for numbers in a row. We use ‘if’ conditions to add a ‘+’ sign between the numbers also some variables to store the sum of a row.

## Numeric functions in php

is_numeric() The is_numeric function used to check that the value of a variable is a number or not. Syntax: is_numeric(var_name) Output: Value is a number number_format() The number_format function used to format a number with in a groups of thousands. Syntax: implode(number,decimals,decimalpoint,separator) (Number is required, other parameters are optional) Output: 5,000,000 5,000,000.000 5*000*000/000 range() The range function used to create an array with containing the values with in the range. […]

## String functions in php

implode() The implode function used to concatenate the array elements as a string with a separator. Syntax: implode(separator, array) Output: Apple,Boy,Cat,Dog explode() This function is vise versa of the implode function. In this function the string is split in to array elements. It breaks a text in to smaller text. Syntax: explode(separator, string, limit) Output: Array (    [0] => I have Car    [1] => I have Bike    [2] => I […]

## How to print a numeric pattern

We can print this pattern in php. In this pattern we divide our program in two parts. In first part we are using two ‘for’ loop to make the above decreasing triangle. The first ‘for’ loop decides the rows and the second ‘for’ loop decides the number of objects in every row. As like above we use same two ‘for’ loops to make lower increasing triangle.

## How to print alphabet series in php

We can make alphabet pyramid series very easily using PHP. To print this pyramid pattern in php, we can use different types of method. In first program we are using range function which store values in an array from A to Z. Now we use two ‘FOR’ loops. In first ‘for’ loop we run condition from 1 to 5 to print 5 rows, and in second ‘for’ loop we set […]