Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
checkboxes
<form action="" method="get">
		What do you do?:
		play <input type="checkbox" name="spare_time[]" value="sport">
		Not play <input type="checkbox" name="spare_time[]" value="sport">
</form>
buttons
<br/><br/>
		Do you play?
		Yes<input type="radio" name="plays_lol" value="yes" checked="checked">
		No<input type="radio" name="plays_lol" value="No">
by თენგიზ მაღლაფერიძე
4 years ago
0
HTML
Tutorial 47
HTML5 and CSS3 beginners tutorials
0
<body>
	<form action="" method="get">
		pick food:
		<select name="food" >
		<option value="potatuna" > potato </option>
		<option value="popcorn" > popcorn </option>
		<option value="pizza" > pizza </option>
		
		</select>
	</form>

</body>
by თენგიზ მაღლაფერიძე
4 years ago
0
HTML
Tutorial 46
HTML5 and CSS3 beginners tutorials
0
text and password fields
<body>
	<form action="" method="get">
		username:<input type="text" name="username" maxlength="10" size="">
		password:<input type="password" name="password" maxlength="10" size="">
		
		
	</form>

</body>
by თენგიზ მაღლაფერიძე
4 years ago
0
HTML
Tutorial 45
HTML5 and CSS3 beginners tutorials
0
Return "world" from the string:

echo substr("Hello world",6);
Using the start parameter with different positive and negative numbers:
// Positive numbers:
echo substr("Hello world",10)."<br>"; //d
echo substr("Hello world",1)."<br>";  //ello world
echo substr("Hello world",3)."<br>";  //lo world
echo substr("Hello world",7)."<br>"; //orld
echo "<br>";

// Negative numbers:
echo substr("Hello world",-1)."<br>"; //d
echo substr("Hello world",-10)."<br>"; //ello world
echo substr("Hello world",-8)."<br>"; //lo world
echo substr("Hello world",-4)."<br>"; //orld
Using the start and length parameters with different positive and negative numbers:
// Positive numbers:
echo substr("Hello world",0,10)."<br>"; //Hello worl
echo substr("Hello world",1,8)."<br>";  //ello wor
echo substr("Hello world",0,5)."<br>";  //Hello
echo substr("Hello world",6,6)."<br>";  //world
echo "<br>";

// Negative numbers:
echo substr("Hello world",0,-1)."<br>"; //Hello worl
echo substr("Hello world",-10,-2)."<br>"; //ello wor
echo substr("Hello world",0,-6)."<br>";  //Hello
by გიორგი ბაკაშვილი
4 years ago
2
PHP
String
PHP official doc
-1
Convert all characters to lowercase:
<?php
echo strtolower("Hello WORLD.");
?>
by გიორგი ბაკაშვილი
4 years ago
0
PHP
String
PHP official doc
0
Return the length of the string "Hello":
<?php
echo strlen("Hello");
?>
by გიორგი ბაკაშვილი
4 years ago
0
PHP
String
PHP official doc
0
Replace the characters "world" in the string "Hello world!" with "Peter":
`<?php
echo str_replace("world","Peter","Hello world!");
?>
by გიორგი ბაკაშვილი
4 years ago
0
PHP
String
PHP official doc
0
Calculate the similarity between two strings and return the matching characters:
<?php
echo similar_text("Hello World","Hello Peter");
?>
by გიორგი ბაკაშვილი
4 years ago
0
PHP
String
PHP official doc
3
Remove whitespaces from both sides of a string:
$str = " Hello World! ";
echo "Without trim: " . $str;
echo "<br>";
echo "With trim: " . trim($str);
The HTML output of the code above will be (View Source):
<!DOCTYPE html>
<html>
<body>
Without trim:  Hello World! 
With trim: Hello World!
</body>
</html>
The browser output of the code above will be:
Without trim: Hello World!
With trim: Hello World!
by გიორგი ბაკაშვილი
4 years ago
1
PHP
String
PHP official doc
-1
Join array elements with a string:
<?php
$arr = array('Hello','World!','Beautiful','Day!');
echo implode(" ",$arr);
?>
by გიორგი ბაკაშვილი
4 years ago
1
PHP
String
PHP official doc
1
Results: 1578