News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Stoyan Stefanov's Blog:
JS/PHP string concatenation mistype
October 31, 2007 @ 12:04:00

"Cross-over" developers out there (those that use PHP and Javascript on a regular basis) can sometimes get confused by little syntax things. Stoyan Stefanov got tripped up by just such an issue.

The front-end developer is a strange beast who has to jiggle to and fro and code in several languages literally at the same time - javascript, html, css, php or some other server side language, some SQL dialect... No wonder that sometimes we make silly mistakes.

His issue was with appending - in Javascript, it's a plus but in PHP, it's a period. Unfortunately, the problem can be hard to track down since Javascript also has a use for the period operator - treating the preceding thing like an object.

0 comments voice your opinion now!
concatenation syntax javascript append concatenation syntax javascript append


blog comments powered by Disqus

Similar Posts

Sander Marechal's Blog: A YuiCompressorFilter for Phing

Richard Thomas's Blog: Pjq - PHP Jquery helper

Felix Geisendorfer's Blog: How to oraganize your CakePHP App's Javascript II

Grzegorz Godlewski: PHP.Kryptik.AB - Give me your FTP!

Felix Geisendorfer's Blog: A PHP developers guide to JavaScript - Part 1


Community Events





Don't see your event here?
Let us know!


language tips interview release podcast framework introduction list bugfix community voicesoftheelephpant zendserver symfony conference laravel code development api series deployment

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework