artisticre
11 months ago

Phone Number Format

Posted 11 months ago by artisticre

I have this function that shows the users phone number but I am not sure how to format it as (xxx) 555-1212. Any help would be appreciated.

 $admin_applist = DB::table('employmentapplication')
    ->select('id','Fname', 'Lname', 'phone', 'email')
         ->get();
         
          return view('/admin')->with(compact('admin_applist'));

Please sign in or create an account to participate in this conversation.