I'm setting button with linked to whatsapp api
, but i'm try to change number without + (plus) attribute because whatsapp api
not allowed number with plus attribute.
I'm using laravel
and the phone number data in $post->phone
. My mentor tell me to use replace helper on laravel
but I still don't understand :
<a href="https://api.whatsapp.com/send?phone=<?=str_replace("+62","62",$post->phone)?>&text=Saya%20tertarik%20untuk%20{{$post->title}}">