This post will explain how to find a substring in a string using pure JavaScript. Let’s see how can we achieve this.
1 2 3 |
var str = 'testing'; var substr = 'tin'; alert(str.indexOf(substr) !== -1); |
The above
This post will explain how to find a substring in a string using pure JavaScript. Let’s see how can we achieve this.
1 2 3 |
var str = 'testing'; var substr = 'tin'; alert(str.indexOf(substr) !== -1); |
The above
Hello students and dear programmers. Today’s script we are going to see how to generate a multiplication table using PHP script.
1 2 3 4 5 6 7 8 9 10 |
<?php $table_no = 7; $upto = 10; for($i=1; $i<=$upto; ++$i){ echo "$table_no * $i = ".$table_no * $i ."<br />"; } ?> |
The above script