Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Write a php program to swap two numbers using temporary variable

<?php $a = 5; $b = 10; $temp = $a; $a = $b; $b = $temp; echo "after swapping"; echo "a =".$a." b=".$b; ?> 
Source by inlarn.com #
 
PREVIOUS NEXT
Tagged: #Write #php #program #swap #numbers #temporary #variable
ADD COMMENT
Topic
Name
7+5 =