call a sweetalert2 function from php code code example Example: sweetalert2 example html <script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>