Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2.4 Manipulation des chaines de caractères
- Chaines.php
- <html>
- <head>
- <title>les chaines</title>
- </head>
- <body>
- <?php
- echo "\"guillemets\" 'quotes' \antislash\ "."<br>";
- echo '"guillemets" \'quotes\' \\antislash\\'."<br>";
- echo <<< text
- "guillemets" 'quotes' \antislash\
- text;
- ?>
- </body>
- </html>
- concatenation.php
- <html>
- <head>
- <title>concatenation</title>
- </head>
- <body>
- <?php
- $var1="text1";
- $var2="text2";
- echo $var1."_".$var2."<br>";
- echo "$var1 $var2";
- ?>
- </body>
- </html>
- chaineBlancs.php
- <html>
- <head>
- <title>chaineBlancs</title>
- </head>
- <body>
- <?php
- $var1=" text1 ";
- echo trim($var1);
- ?>
- </body>
- </html>
- explode.php
- <html>
- <head>
- <title>concatenation</title>
- </head>
- <body>
- <?php
- $var1="coucou";
- $var2=explode(" ",$var1);
- ?>
- </body>
- </html>
- asso.php
Add Comment
Please, Sign In to add comment