4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

Variable Declaration in P H P

Declaring a Variable (1).png

First What is a Variable..
We can assume it like a container for a value.. The value can be an interger or a character or any float (A number which has a decimal place).

In P H P we will Declare any Variable with " Dollar - '$' " symbol...
For Example in the picture it is declared as "name=Gupta"and"name = Gupta" and "age = 18" there the PHP assigns that value to that variable by checking whether it is a float or int or char.. the process is done internally..

There in the picture By Echoing(printing) our Final Statement.. We will get the output as
"My name is Gupta and age is 17" . This is how we declare variables in PHP..

Thank You... Next Tip is Math Operations...

1 upvotes $0.00

Replies (0)

Conversation

No replies yet

Replies will appear here as people join the conversation.

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: