Say i wanted to code my script shorter, like so:

PHP Code:
<?php
    $handle 
fopen('mytxt.txt''r');
    
$contents = (@fread($handle,filesize('mytxt.txt')))[B][COLOR=DarkOrange]++[/COLOR][/B];
    
fclose($handle);
    
$handle fopen('mytxt.txt','w');
    
fwrite($handle,$contents);
    
fclose($handle);
    echo 
$contents;
?>
instead of doing $contents++

why does that return a parse error? its the same exact thing i think