cgm225 Posted April 27, 2008 Share Posted April 27, 2008 If I have a long line of PHP code, like this:: $statement = $connection->prepare("SELECT COUNT(*) FROM $table WHERE $usernameField = ? AND $passwordField = ?"); IS there a convention for inserting a return and wrapping the line of code? Any indents in the second line? Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/103088-wrapping-lines-of-php-code/ Share on other sites More sharing options...
Fadion Posted April 27, 2008 Share Posted April 27, 2008 Ive seen way longer . If im getting this right, u want to have it in 2-3 lines, so simply: <?php $statement = $connection->prepare("SELECT COUNT(*) FROM $table WHERE $usernameField = ? AND $passwordField = ?"); ?> Link to comment https://forums.phpfreaks.com/topic/103088-wrapping-lines-of-php-code/#findComment-528064 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.