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
print_r(array_filter($numbers, 'isPositive')); | |
function isPositive($val) { | |
//return ($val > 50) ? true : false; | |
if($val%2 == 1) { | |
return $val; | |
} | |
} |
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 | |
$server = "localhost"; | |
$username = "xxxx"; | |
$pasword = "xxxx"; | |
$dbName = "xxxx"; | |
$conn = new mysqli($server, $username, $pasword, $dbName); | |
if($conn->connect_error) { | |
die('Connection Error'. $conn->connect_error); | |
} |
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
LANG_TRANSLATE = https://drupal.stackexchange.com/questions/249408/how-to-create-a-list-of-untranslated-content-in-views/249411#249411 | |
/* Get Path */ | |
$path = \Drupal::request()->getpathInfo(); | |
$arg = explode('/',$path); | |
/*Get User info */ | |
$current_user = \Drupal::currentUser(); | |
/* http://drupal8.support/en/ontdek */ |
NewerOlder