Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

annas Group Title

php new tutorial: contents: 1. single quotes and concatenation 2. escape sequences 3. math functions

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. annas Group Title
    Best Response
    You've already chosen the best response.
    Medals 10

    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: <?php echo "hello";// takes more time to execute echo 'world';// comparatively takes lesser time to execute ?>

    • 2 years ago
  2. annas Group Title
    Best Response
    You've already chosen the best response.
    Medals 10

    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".

    • 2 years ago
  3. annas Group Title
    Best Response
    You've already chosen the best response.
    Medals 10

    lets have a look on an example of php: <?php $var = 'Annas'; echo 'hello '.$var.'<br>'; ?> output: hello Annas

    • 2 years ago
  4. annas Group Title
    Best Response
    You've already chosen the best response.
    Medals 10

    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)

    • 2 years ago
  5. annas Group Title
    Best Response
    You've already chosen the best response.
    Medals 10

    Third topic for this tutorial i.e simple math functions: like other languages we can also add , subtract , multiply and divide in php. example: <?php $num1 = 10; $num2 = 5; echo $num1 + $num2= '<br>'; echo $num1 - $num2= '<br>'; echo $num1 * $num2= '<br>'; echo $num1 / $num2= '<br>'; $num1++; //increment the value by one $num2--;//decrements the value by one ?>

    • 2 years ago
  6. annas Group Title
    Best Response
    You've already chosen the best response.
    Medals 10

    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 :)

    • 2 years ago
  7. Agent_Sniffles Group Title
    Best Response
    You've already chosen the best response.
    Medals 2

    my mom used to program in binary....back in the day. She had a tablet too! Only it was stone.

    • 2 years ago
  8. annas Group Title
    Best Response
    You've already chosen the best response.
    Medals 10

    binary coding is way to difficult atleast for me

    • 2 years ago
  9. adhokshaj Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    @Agent_Sniffles: I have also programmed in machine language....:D

    • 2 years ago
  10. jonnyrules96 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    @adhokshaj you mean steampunk style programming :P

    • 2 years ago
  11. jonnyrules96 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    this is very helpful btw

    • 2 years ago
  12. annas Group Title
    Best Response
    You've already chosen the best response.
    Medals 10

    dear users please stick to the topic ie php thank you !

    • 2 years ago
  13. annas Group Title
    Best Response
    You've already chosen the best response.
    Medals 10

    i m thankful to you that you liked my tutorial stay tuned for other tutorials

    • 2 years ago
  14. Agent_Sniffles Group Title
    Best Response
    You've already chosen the best response.
    Medals 2

    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

    • 2 years ago
  15. annas Group Title
    Best Response
    You've already chosen the best response.
    Medals 10

    stick to the topic i.e its a request thank you

    • 2 years ago
  16. Jeet.in Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    @annas you are doing great ! But this is just not the right place. Why not open yourself a blog and do the same !

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.