What do you want to save?
Add Code snippet
New code examples in category PHP
-
Taylor Spark 2021-08-29 18:59:02
encrypt/decrypt data php
function encrypt_decrypt($string, $action = 'encrypt') { $encrypt_method = "AES-256-CBC"; $secret_key = 'AA74CDCC2BBRT935136HH7B63C27'; // user define private key $secret_iv = '5fgf5HJ5g27'; // user define secret key $key = hash(... Add solution -
CsGeek 2021-08-29 18:40:02
woocommerce disable payment method if coupon appied and total is 0
add_filter('woocommerce_available_payment_gateways', 'applied_coupons_hide_payment_gateways', 20, 1 ); function applied_coupons_hide_payment_gateways( $available_gateways){ // Not in backend (admin) if( is_admin() ) return $available_gate... Add solution -
Mark Gabriel 2021-08-29 18:31:01
kill php process mac
kill $(ps aux | grep '[p]hp' | awk '{print $2}') Add solution -
Patrick Owens 2021-08-29 18:01:01
php mysqli number row
<?php /* Explination The mysqli_num_rows() function is an inbuilt function in PHP which is used to return the number of rows present in the result set. It is generally used to check if data is present in the database or not. To use this function, ... Add solution -