Traditionally you'd have a temporary variable, assign the first variable to it, assign the second variable the first variable, then the first the temporary variable.
<?PHP $a = "CodeCall!"; $b = "Hello "; $t = $b; $b = $a; $a = $t; echo $a.$b; //Hello CodeCall!


Sign In
Create Account



Back to top









