예제 #1
0
     add_condition();
     break;
 case 'select_data_from_db':
     select_data_from_db();
     break;
 case 'show_ip_info':
     show_ip_info();
     break;
 case 'view_submissions':
     view_submissions();
     break;
 case 'featured_plugins':
     featured_plugins();
     break;
 case 'extensions':
     extensions();
     break;
 case 'remove_query':
     remove_query();
     break;
 case 'save_query':
     save_query();
     break;
 case 'db_table_struct':
     db_table_struct();
     break;
 case 'db_table_struct_select':
     db_table_struct_select();
     break;
 case 'add_query':
     add_query();
예제 #2
0
파일: index.php 프로젝트: nyxz/fmi-php
//  string(3) "one"
//  [1]=>
//  string(3) "two"
//  [2]=>
//  string(5) "three"
//  [3]=>
//  string(4) "four"
//}
$sent = "I love eating cookies late at night";
$replaceMap = array("love" => "hate", "cookies" => "waffles", " " => "_");
$replaced = replace($sent, $replaceMap);
var_dump($replaced);
// "I_hate_eating_waffles_late_at_night";
echo '<br><br><br>';
$arrayOfFiles = array("image1.jpg", "image2.jpg", "song1.mp3");
$result = extensions($arrayOfFiles);
var_dump($result);
//array(3) {
//  ["image1"]=>
//  string(3) "jpg"
//  ["image2"]=>
//  string(3) "jpg"
//  ["song1"]=>
//  string(3) "mp3"
echo '<br><br><br>';
$alphabet = array("a", "b", "c", "d", "\$", "#");
$length = 4;
$pass = password($alphabet, 4);
echo $pass;
// "bc$#";
?>