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 convert relevant characters in a string to HTML entities?

How do I replace a word in a string in PHP?

How do I find the length of a string in PHP?

How can I remove spaces from around a string value?

How do I convert characters to HTML entities using PHP?



Custom Search