Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
add two numbers as string in php
Simon Brodie
Programming language:
PHP
2021-02-20 12:41:07
0
Q:
add two numbers as string in php
jack
Code:
PHP
2021-02-20 12:48:32
<?php $x=15; $y=30; $z=$x+$y; echo "Sum: ",$z; ?>
1
Tags
number
string
php
add
two
Related
add two numbers in php
Adding string with number in php
php function return multiple values
New to Communities?
Join the community