anonymous
  • anonymous
php new tutorial: contents: 1. single quotes and concatenation 2. escape sequences 3. math functions
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
Lets start this tutorial. 1. Use of single quote and concatenation work of single and double quotes is almost similar the difference is in the execution time. let see an example:
anonymous
  • anonymous
now lets see what concatenation is: In computer programming, string concatenation is the operation of joining two character strings end-to-end. For example, the strings "snow" and "ball" may be concatenated to give "snowball". In many programming languages, string concatenation is a binary infix operator. For example, the following expression uses the "+" symbol as the concatenation operator to join two strings: "Hello, " + "World";, and has the value "Hello, World".
anonymous
  • anonymous
lets have a look on an example of php: '; ?> output: hello Annas

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
Now the second part: what are Escape sequences? An escape sequence is a series of characters used to change the state of computers and their attached peripheral devices. These are also known as control sequences, reflecting their use in device control. Some control sequences are special characters that always have the same meaning. Escape sequences use an escape character to change the meaning of the characters which follow it, meaning that the characters can be interpreted as a command to be executed rather than as data. some examples of escape sequences: \a alarm, that is, the BEL character (hex 07) \cx "control-x", where x is any character \e escape (hex 1B) \f formfeed (hex 0C) \n newline (hex 0A)
anonymous
  • anonymous
Third topic for this tutorial i.e simple math functions: like other languages we can also add , subtract , multiply and divide in php. example: '; echo $num1 - $num2= '
'; echo $num1 * $num2= '
'; echo $num1 / $num2= '
'; $num1++; //increment the value by one $num2--;//decrements the value by one ?>
anonymous
  • anonymous
increment and decrement functions are mostly used in loops but that's another topic. that's it for this tutorial. do comment your questions and views about this tutorial. goodluck :)
anonymous
  • anonymous
my mom used to program in binary....back in the day. She had a tablet too! Only it was stone.
anonymous
  • anonymous
binary coding is way to difficult atleast for me
anonymous
  • anonymous
@Agent_Sniffles: I have also programmed in machine language....:D
anonymous
  • anonymous
@adhokshaj you mean steampunk style programming :P
anonymous
  • anonymous
this is very helpful btw
anonymous
  • anonymous
dear users please stick to the topic ie php thank you !
anonymous
  • anonymous
i m thankful to you that you liked my tutorial stay tuned for other tutorials
anonymous
  • anonymous
Haa the 'my mom...binary coding...blaah' she wrote it. Not me. Lmao But, I have NO clue what it is...so yeah. Just putting that out there. :P
anonymous
  • anonymous
stick to the topic i.e its a request thank you
anonymous
  • anonymous
@annas you are doing great ! But this is just not the right place. Why not open yourself a blog and do the same !

Looking for something else?

Not the answer you are looking for? Search for more explanations.