What could be causing the discrepancy between the displayed code and the number saved in zahl.txt?
The discrepancy between the displayed code and the number saved in zahl.txt could be caused by a formatting issue, such as extra whitespace or newline characters being included in the saved number. To solve this issue, you can use the trim() function in PHP to remove any leading or trailing whitespace from the saved number before displaying it.
<?php
// Read the number from zahl.txt
$number = file_get_contents('zahl.txt');
// Trim any leading or trailing whitespace
$number = trim($number);
// Display the number
echo $number;
?>