Search
 
SCRIPT & CODE EXAMPLE
 

PHP

add two numbers in php

<?php  
$x=15;  
$y=30;  
$z=$x+$y;  
echo "Sum: ",$z;  
?>  
Comment

adding two numbers in php

<?php

function addTwoNumbers($number1, $number2){
    echo "Result: ",$number1+$number2;
}

addTwoNumbers(100, 125);
?>
Comment

PREVIOUS NEXT
Code Example
Php :: Pass all data to all pages laravel 
Php :: laravel redirect to intended page after register 
Php :: installing bootstrap ui in laravel app 
Php :: laravel csrf token mismatch postman 
Php :: codeigniter 3 send email smtp 
Php :: php iterate thru object 
Php :: why do we use php exceptions 
Php :: change minutes in to hours carbon 
Php :: laravel collection find duplicates 
Php :: laravel change foreign key name 
Php :: how to cheeck php 
Php :: php filter array contain valu 
Php :: php sort multidimensional array by value 
Php :: php color generator 
Php :: erreur php 
Php :: laravel collection slice 
Php :: laravel unique column except self 
Php :: how to collapse array in laravel 
Php :: eloquent with select 
Php :: laravel sluggable 
Php :: laravel eloquent select one column in array 
Php :: laravel handle queryexception 
Php :: get user role in symfony 
Php :: hide env file in laravel 
Php :: get where different laravel 
Php :: clear cache command in laravel controller 
Php :: Laravel Code To Rename file on server in the storage folder 
Php :: laravel migration table column nullable 
Php :: adding days in datetime php 
Php :: illuminate/container requires php your php version (X.X.XX) does not satisfy that requirement. 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =