Premium Only Content

Mask a portion of string in repeat with given character in Laravel PHP ( #shorts )
Hi Friends,
Mask a portion of string in repeat with given character in Laravel PHP
`Str::mask()` method is used to mask a portion of a string in repeat with given character. which helps in hiding full information for any particular value like email, phone etc.
Even you use a negative number as the third argument to the mask method, which will make mask method to begin masking at the given distance from the end of the string.
use Illuminate\Support\Str;
$string = Str::mask('tayson@exampledomains.com', '*', 3);
// tay**********************
$string = Str::mask('tayson@exampledomains.com', '*', -22, 3);
// tay***@exampledomains.com
#php #laravel #phplaravel #laravelmask #mask #single #instance #string #maskvalue #maskstring #maskemail #maskphone #javascript #string #javascriptstring #javascriptlearning #javascriptinterview #javascriptstringfunctions #stringfunctions #interview #interviewquestionsandanswers #question #answer #questionanswer #questionandanswer #shorts #trending #trend #popular #method #function #shorts #shortsfeed #shortvideo #short #shortsviral #viral #viralshort #viralvideo #viralshorts #chatgpt #openai #gpt3 #gpt4 #chatgpt4 #chatgpt3 #gta6 #princecheema_official @princecheema_official
-
LIVE
The Bubba Army
21 hours agoHulk Hogan had Leukemia? - Bubba the Love Sponge® Show | 8/01/25
4,019 watching -
10:35
Game On!
17 hours agoA New Pope and New Hope in Chicago! Bears 2025 Season Preview
169 -
14:13
Clickbait Wasteland
13 hours ago $2.22 earnedAsking New Yorkers Who they Support for Mayor: Harlem
17K20 -
19:55
The Rad Factory
14 hours ago $0.48 earnedCan I Fix My Fire Damaged F1 Car?
3.71K1 -
1:26:22
Dialogue works
2 days ago $0.20 earnedScott Ritter: Russia Just DEFIED the U.S.: We'll End the War on OUR Terms!
6656 -
LIVE
BEK TV
22 hours agoTrent Loos in the Morning - 8/01/2025
429 watching -
13:08
Dad Saves America
12 hours ago $0.86 earnedTeachers Unions Play Politics While Students Lag Behind - Poisoning of the American Mind: Pt 4
11.4K9 -
20:05
Preston Stewart
12 hours ago $1.59 earnedCrimea Raid to Chasiv Yar Fight
10.9K8 -
8:11
Millionaire Mentor
14 hours agoTulsi Gabbard and Leavitt DOUBLE-TEAM Kaitlan Collins in FIERY Exchange
8.87K5 -
46:02
Coin Stories with Natalie Brunell
1 day agoWhat They’re Hiding About the Economy | Natalie Brunell with Danielle DiMartino Booth
42K7