This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Plugin Name: Custom Plugin | |
* Plugin URI: http://www.websiteanda.com/custom-plugin | |
* Description: Pertama Kali Custom Plugin. | |
* Version: 1.0 | |
* Author: Fimtech | |
* Author URI: http://www.websiteanda.com | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function lima_generate_url_confirm_order(){ | |
if(isset($_GET['login-terapis'])){ | |
// wp_set_auth_cookie( $user_id ); | |
$user_id = 3; | |
$order_id = 4; | |
$valid_period = 60 * 10; //set time url 10 minute | |
$expiry = current_time( 'timestamp', 1 ) + $valid_period; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$kalimat = "test php"; | |
$kalimat_new = ucwords($kalimat); | |
echo $kalimat_new; | |
// Test Php | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$kalimat = "tEst"; | |
$kalimat_new = ucfirst($kalimat); | |
echo $kalimat_new; | |
// TEst | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$kalimat = "test"; | |
$kalimat_new = strtoupper($kalimat); | |
echo $kalimat_new; | |
// TEST | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dari_user = "Andi"; | |
$dari_database = "andi"; | |
if ($dari_user == $dari_database) { | |
echo "same"; | |
} | |
else { | |
echo "not same"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$test; | |
$_test; | |
$test123; | |
$tesg12yyhjs12; | |
echo "<br />Jika Tulisan Ini Tampil, <br /> maka pemberian nama variabel sudah benar"; | |
?> |