CREATE TABLE `variation` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`person_id` INT(11) NOT NULL DEFAULT '0',
`place_id` INT(11) NOT NULL DEFAULT '0',
`item_id` INT(10) NOT NULL,
`date` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`count` INT(11) NOT NULL,
`summ` INT(10) UNSIGNED NULL DEFAULT NULL,
PRIMARY KEY (`id`),
INDEX (person_id),
INDEX (place_id),
INDEX (item_id)
)
COLLATE='utf8_general_ci'
ENGINE=MyISAM;
/**
* function needString
* @param string $string
*/
function needString($string)
{
$value = array_shift($string);
//Code
}