What are some common pitfalls for beginners transitioning from ColdFusion to PHP?

One common pitfall for beginners transitioning from ColdFusion to PHP is the difference in syntax for variable interpolation. In ColdFusion, variables can be directly inserted into strings using pound signs (#), while in PHP, variables need to be concatenated with periods (.) within double quotes. To solve this issue, simply replace the pound signs with periods in PHP.

// ColdFusion code
<cfset name = "John">
<cfoutput>Hello, #name#!</cfoutput>

// PHP code
<?php
$name = "John";
echo "Hello, " . $name . "!";
?>