Hi,
From the pokemon exercise here Coding Games and Programming Challenges to Code Better
Complete the program that simulates the exchange of cards. The card of the first child and that of the second child are represented by the variables $card1
and $card2
respectively. At the end of the program, the variable $card1
must have the initial value of the variable $card2
, and the variable $card2
must have the initial value of the variable $card1
<?php
$carte1 = lireLigne();
$carte2 = lireLigne();
$carte1 = $carte2;
$carte2 = $carte1;
why is this code not working?