Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP using $ sign in PHP
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


brijesh
using $ sign in PHP
1 Answer(s)      4 years and 2 months ago
Posted in : PHP


Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?


Advertisement
View Answers

November 13, 2010 at 6:17 PM


Hi,

It wouldn?t matter, since the variable is all by itself, but if you were to print something like "{$a},000,000 mln dollars", then you definitely need to use the braces.

Thanks



Related Tutorials/Questions & Answers:
using $ sign in PHP
using $ sign in PHP  Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example
how to implement Single Sign On in enterprise application using spring framework
how to implement Single Sign On in enterprise application using spring framework  how i can implement the single sign on in my spring based web app..i am new to spring frame work..any help will be appreciated as its urgent
Advertisements
Find Zodiac Sign
Find Zodiac Signs using Java Programming In this section, you will learn how to find the zodiac sign and chinese sign. For this, We have differentiated all... is differentiated according to the zodiac sign. The given program prompt the user to enter his
Login And Sign up
Login And Sign up  how do you create a login and sign up that will automaticly add users and passwords after activation link from auto confirmation email is opened
upload video using php
upload video using php  How to upload a video on MYSQL Server using PHP Code..? Can any one provide me an example
SMART VEHICLE ROAD SIGN IDENTIFICATION
SMART VEHICLE ROAD SIGN IDENTIFICATION  JAVA code for "SMART VEHICLE ROAD SIGN IDENTIFICATION
Error using SoapClient() in PHP
Error using SoapClient() in PHP  I'm trying to access WSDL(Web Service Definition Language) file using SoapClient() of PHP. I found that WSDL file... using: $client = new SoapClient("https://webservices.chargepointportal.net
Pagination without using database in php
Pagination without using database in php  How can I show multiple images in multiple rows with pagination in php
How to Create Instance using PHP
How to Create Instance using PHP  Hi, How to create an instance class in PHP program. Can someone explain or suggest any online reference how to create an Instance class in PHP. Thanks
what is the mysql in the database using php
what is the mysql in the database using php  what is the mysql in the database using php  Please visit the following link: PHP Database
what is the mysql in the database using php
what is the mysql in the database using php  what is the mysql in the database using php  Please visit the following link: PHP Database
PHP SQL Variable
PHP SQL Variable       PHP SQL Variable are denoted with a leading dollar sign ($). The PHP ... illustrates how to create the variable in php for sql operation. In this example
encrypt the username and password using PHP
encrypt the username and password using PHP  How can we encrypt the username and password using PHP?   Hi friends, You can use the MySQL PASSWORD() function to encrypt username and password. For example, INSERT
how to connect to database in php using mysql
how to connect to database in php using mysql  how to connect to database in php using mysql
Compressing a folder into GZIP format using PHP Windows
Compressing a folder into GZIP format using PHP Windows  How to gzip compress a folder/directory in PHP using windows
What are the benefits of using Frameworks in PHP
What are the benefits of using Frameworks in PHP  I am into PHP development since 1 year and have been using the procedural approach for developing the websites. I am willing to switch to the MVC architecture for web development
PHP Numbers Variables
in PHP always recognized with $sign. After declaring a variable once in your script... more example to understand how to perform mathematics using PHP variable...PHP Variables Numbers We already define that variables are used to store
About zodiac sign in java - Java Beginners
About zodiac sign in java  Hello again.. I need help.. Our assgnment in programming is like this. Input your Bday and the output are your zodiac sign,, your chinese zodiac sign (year, ex: rat, pig, dragon etc..) and the element
How to use dollar sign in velocity
How to use dollar sign in velocity       This Example shows you how to use dollar sign... for controlling template methods and properties. #set($sign ="+"): This is a statement
execute a PHP script using command line
execute a PHP script using command line  How can I execute a PHP script using command line?   Hi friends, Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line
Sql Examples using php code
Here is the many examples. In this tutorial we discuss many examples of sql statements using php code
connect sql server 2005 using php
connect sql server 2005 using php  how to connect sql server 2005 using php program. how mssql_connect will work
How to Using timezone_location_get() PHP
How to Using timezone_location_get() PHP  Hi, I am trying to create an application using the timezonelocationget() in PHP to retrieve the data of country code & latitude/longitude. I need the help of PHP developer who can
how to connect SQL Server 2005 using php
how to connect SQL Server 2005 using php  i need to connect SQL Server 2005 using php. how can i connect . how to use mssql_connect function
How to Retrieve Data from Facebook Using PHP
How to Retrieve Data from Facebook Using PHP  is this link has right content regards that?? http://techpdf.co.cc/blog/how-to-retrieve-data-from-facebook-using-php
How to Retrieve Data from Facebook Using PHP
How to Retrieve Data from Facebook Using PHP  is this link has right content regards that?? http://techpdf.co.cc/blog/how-to-retrieve-data-from-facebook-using-php
How to populate text fields using php code?
How to populate text fields using php code?  How could I use php to populate text fields by selecting a name of a business from dropdown list? Those..., post code in php. Also, the user would also need to edit the information
Unable to send mail using php script
Unable to send mail using php script  Hello i am trying to send mail using mail function.But the message is never sent. I have installed a free smtp... ; For Win32 only. ;sendmail_from = me@example.com I have this php code can
sending verification code to mobile using php
the process and how to implement this using php...sending verification code to mobile using php  I had created a website and aim is to whoever the client register for site with their mobile number
how to search data in xml files using php
how to search data in xml files using php  So I want to create... and available on the server but I want to access it through php. How can I do this and how can I use PHP to allow them to search through, and then display
php
php using javasript  how to set timer in php using javasript
Advertisements
 

 

 

DMCA.com