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
-
9:39
Tactical Advisor
1 day agoBudget vs Expensive Helmet Setup
3.73K5 -
1:15:36
Patriots With Grit
15 hours agoWill Their Great Reset Backfire? | Larry Ballard
5.11K5 -
1:00:13
The Squad
1 day agoMckenna To Man Utd ON! ✅ Man Utd Will Get DESTROYED By Man City! 🥲 Arsenal To Sign Brobbey?!
2.99K1 -
7:30
Adam Does Movies
15 hours agoFuriosa: A Mad Max Saga Movie Review - Cinema Has Returned!
14.2K38 -
9:59
Silver Dragons
20 hours agoBullion Dealer on Silver’s BIGGEST MOVE in a Decade
24.5K31 -
17:32
JoBlo Originals
20 hours agoWhat Happened to DANNY GLOVER?
29.7K19 -
22:14
MYLUNCHBREAK CHANNEL PAGE
16 hours agoAngels Helped Build the Old World?
35.1K31 -
4:16
Chris Jericho
13 hours agoTalk Is Jericho Highlight: Joel McHale x Chevy Chase & Community
32.6K2 -
2:43:34
a12cat34dog
9 hours agoROCKIN' OUT IN THE RUMBLE CREATOR HOUSE
18.9K7 -
4:27:24
Right Side Broadcasting Network
11 days agoLIVE REPLAY: President Trump Addresses Libertarian National Convention in D.C. - 5/25/24
333K509