if ( echo"ciao
" == 1 ) {
...ti è stato detto che echo essendo un costrutto del linguaggio non restituisce nessun valore, quindi questo dà errore