Meaning /"...../" in php

Solved
cedric12 Posted messages 29 Status Member -  
nEm3sis Posted messages 722 Status Member -
Hello,

What is the purpose of /"name/" in PHP?

Thank you.

7 answers

  1. Erdnax Posted messages 2279 Status Contributor 497
     
    Hi,

    It's a bit like in French; it's easier to respond in context...

    So if you have a "sentence", in other words, a piece of code that's a bit longer, we can certainly help you better ;)

    Talk soon

    --
    Signature strike...
    0
  2. StreM Posted messages 515 Status Member 124
     
    I think you rather mean "...
    well when you define a string and you want to include quotes in it, you can't do:
    $string = "and he says: "wood, this is...". end.";

    Because you would define your string as: "and he says: " and PHP would return an error because it wouldn't understand the rest...
    So to include quotes, you have to declare your string like this:
    $string = "and he says: \"wood, this is...\". end.";
    This way, it does not take your quotes into account.
    Same for many special characters: to make a \ in a string, you have to put \\ (one to indicate that the following character is a special character).
    There you go, you almost know everything!

    --

    The less intelligent the white is, the more the black seems stupid to him.
    0
    1. Erdnax Posted messages 2279 Status Contributor 497
       
      Hi! How are you?

      Actually, I didn’t really think about that, because the underline of the "quotes, including me ^^, confused me :P

      Well thought ;)

      See you!

      --
      Signature strike...
      0
      1. StreM Posted messages 515 Status Member 124 > Erdnax Posted messages 2279 Status Contributor
         
        Well, I'm doing fine, and you?
        Not seeing straight today? :-P
        Well, neither am I, and don't worry, it took me a little while before I realized he had underlined where the question was...
        Were you there this morning?

        --

        The less intelligent the white is, the more the black seems stupid to him.
        0
      2. Erdnax Posted messages 2279 Status Contributor 497 > StreM Posted messages 515 Status Member
         
        Alright...

        Yes, I was there this morning, but it's Friday, and besides, I had quite a few things to check, so one or two posts here and there, but nothing significant ;)

        --
        Punvf cnf dhbv zrgger...
        0
  3. cedric12 Posted messages 29 Status Member
     
    echo "<input type=\"checkbox\" name=\"variable\" checked=\"checked\">";
    0
  4. Erdnax Posted messages 2279 Status Contributor 497
     
    So StreM was right, re-read his post, and you will see that it's exactly that.

    --
    Punvf cnf dhbv zrgger...
    0
  5. cedric12 Posted messages 29 Status Member
     
    Thank you for the help.
    0
  6. malenvo
     
    Hello, how are you?
    What do the names <<.>> and <<..>> mean in Windows and Unix???????

    I know it's a difficult question, but I need to have a good answer

    Thank you and think well
    0
  7. nEm3sis Posted messages 722 Status Member 113
     
    Could you give an example?
    0