S

@SudhirGour

strcasecmp

PHP
3 years ago
<?php echo (strcasecmp("Sudhir" , "gour")); // Returns alphabetical position of first unequal character of first argument // Returns -1 if string1 is less than string2; 1 if string1 is greater than string2, and 0 if they are equal.

strrchr

PHP
3 years ago
<?php $strings = "this is a string with all words in lowercase"; echo strrchr($strings , "a"); // returns the portion of string which starts at the last occurrence of substrin and goes until the end of string.

explode

PHP
3 years ago
<?php // implode() : $array = [1,2,3,4,5]; $str_array = implode("~" , $array ); print_r(explode("~" , $str_array));

implode

PHP
3 years ago
<?php // implode() : $array = [1,2,3,4,5]; $str_array = implode("~" , $array ); print_r($str_array);

strlen

PHP
3 years ago
<?php // strlen() : $strings = "this is a string with all words in lowercase"; echo strlen($strings);

strrev

PHP
3 years ago
<?php // strrev() : echo strrev("Sudhir Gour");

str_pad()

PHP
3 years ago
<?php // str_pad() : $strings = "this is a string with all words in lowercase"; echo str_pad($strings , 55 , "&") . "\n"; echo str_pad($strings , 55 , "$" , STR_PAD_LEFT) . "\n"; echo str_pad($strings , 55 , "$" , STR_PAD_BOTH);

str_ireplace

PHP
3 years ago
<?php // str_ireplace() : $strings = "this is a string with all words in lowercase"; echo str_ireplace("LOwercase" , "uppercase" , $strings); echo $strings;

substr

PHP
3 years ago
<?php $strings = "this is a string with all words in lowercase"; // substr() : echo substr($strings , 3);

safasd

PHP
3 years ago
<?php $arry = ["Sudhir" , "Samay" , "Samartha" , "Shiv" , "Ram" , "Krishna" , "Ganesh"]; $array = [ "fname" => "Sudhir", "lname" => "Gour", "city" => "Jaipur", "state" => "Rajasthan", "country" => "India"

strtoupper

PHP
3 years ago
<?php // strtoupper() : $strings = "this is a string with all words in lowercase"; echo strtoupper($strings);

ucwords

PHP
3 years ago
<?php // ucwords() : $strings = "this is a string with all words in lowercase"; echo ucwords($strings);

ucfirst

PHP
3 years ago
<?php // ucfirst() : $strings = "f******sudhir ** Gour**"; echo ucfirst($strings);

strtolower

PHP
3 years ago
<?php $strings = "******Sudhir ** Gour**"; // strtolower() : echo strtolower($strings);

strpos

PHP
3 years ago
<?php $strings = "******Sudhir ** Gour**"; echo strpos($strings , "Our"); // returns nothing echo strpos($strings , "our"); // returns 17

strip_tags

PHP
3 years ago
<?php $text = '<p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>'; print_r(strip_tags($text));

str_word_count

PHP
3 years ago
<?php $strings = "******Sudhir ** Gour**"; // str_word_count() : print_r(str_word_count($strings));

str_split

PHP
3 years ago
<?php $strings = "******Sudhir ** Gour**"; // str_split() : print_r(str_split($strings , 3));

str_shuffle

PHP
3 years ago
<?php $strings = "******Sudhir ** Gour**"; // str_shuffle() : echo str_shuffle($strings);

str_replace

PHP
3 years ago
<?php $strings = "******Sudhir ** Gour**"; // str_replace() : var_dump(str_replace("Sudhir" , "Samay" , $strings));