This file contains 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
/** | |
* Remove the last part of a string. | |
* | |
* This function removes the last part of a string, conditioned on spaces | |
* inbetween the parts. Like words, in a sentence. | |
* | |
* @param String $string The string. | |
**/ | |
function str_remove_lastpart($string) { | |
$string_parts = explode(' ',$string); |
This file contains 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
/* | |
* Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/> | |
* | |
* This program is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License as published by the | |
* Free Software Foundation; either version 2 of the License, or (at your | |
* option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, but WITHOUT | |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
This file contains 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 | |
// If they selected the first checkbox! | |
if (isset($_POST['checkbox_1']) { | |
echo "You selected: $_POST['checkbox_1']"; | |
} | |
// If they selected the second checkbox! | |
if (isset($_POST['checkbox_1'])) { | |
echo "You selected: $_POST['checkbox_1']"; |
NewerOlder