Subtract two numbers without using arithmetic operators in PHP

Added By: Prem Tiwari | Last Updated: | In: PHP Tutorials


This is a basic PHP program based on arithmetic operators which explain to subtract two numbers without using arithmetic operators in PHP with an example and output.

PHP – Subtract two numbers without using arithmetic operators

Copy the below PHP code and execute it with help of PHP compiler.

Output:

x – y is 16