本文整理汇总了PHP中Books::parse_tags方法的典型用法代码示例。如果您正苦于以下问题:PHP Books::parse_tags方法的具体用法?PHP Books::parse_tags怎么用?PHP Books::parse_tags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Books
的用法示例。
在下文中一共展示了Books::parse_tags方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/*
make asoociative array for testing
*/
$insert_data = array("isbn" => "278914", "up_date" => "2016-02-06 18:07:57", "title" => "C How to Program", "author" => "Paul Dietel & Harvey", "publisher" => "", "p_year" => "2016-02-06 18:07:57", "edition" => "7", "lang" => "English", "category" => "programming", "tags" => "c how to program", "pages" => "10", "rating" => "", "comment" => "", "count" => "0");
$books = new Books();
echo "<h1>Successfully Created Connection</h1>";
$books->add_records($insert_data);
$isbn = "\t9780132990448";
$books->update_edition($isbn, 7);
$books->delete_record($isbn);
$books->bookExist(3);
$books->getAuthorName(278);
$books->authorsList();
$books->booksList();
$books->getBooksCount();
$authorName = "Paul Dietel & Harvey";
$books->books_by_author($authorName);
$categoryName = "programming";
$books->books_by_category($categoryName);
$p_year = "2016-02-07 00:02:19";
$books->books_by_p_year($p_year);
$books->books_sortby_up_date();
$books->books_sortby_p_year();
$books->books_sortby_title();
$books->books_by_rating(4);
$publisher = "MISSING MANUAL";
$books->books_by_publisher($publisher);
$books->books_by_lang("english");
$books->parse_tags("english;hindi;janju;kamina");
$books->update_tags($isbn, "test1;test2;test3");
$books->books_by_tag("WEB");