PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

What is the usage of { } in string handling in php?


These are used to demarcate the boundary between the name of the string and content around it.

For instance if you have a variable called $multiplier and you want to write something like this: 10x whatever, then you can't write $multiplierx in your echo statement but you could write {$multiplier}x

Comment on this Question and Answer >>>

ASK A QUESTION

More strings PHP Questions

How do I fetch the meta tags from a webpage using PHP?

how to compare strings in PHP?

How do I join strings together?

How do I find the ASCII value of a string character?

How do I turn a string into an array?



Custom Search