我有一个数组(包含了“爱”的所有定义):
[
{
def: "a strong positive emotion of regard and affection",
exemple: "hildren need a lot of love",
class_: "noun"
},
{
def: "any object of warm affection or devotion",
exemple: "the theater was her first love",
class_: "noun"
},
{
def: "sexual activities (often including sexual intercourse) between two people",
exemple: "he has a very complicated love life",
class_: "noun"
},
{
def: "have a great affection or liking for",
exemple: "She loves her boss and works hard for him",
class_: "verb"
},
{
def: "get pleasure from",
exemple: "I love cooking",
class_: "verb"
},
]
是否可以使用
Underscore-PHP
或
PHP Array function
{
noun: [
{
def: "a strong positive emotion of regard and affection",
exemple: "hildren need a lot of love",
class_: "noun"
},
{
def: "any object of warm affection or devotion",
exemple: "the theater was her first love",
class_: "noun"
},
{
def: "sexual activities (often including sexual intercourse) between two people",
exemple: "he has a very complicated love life",
class_: "noun"
},
],
verb: [
{
def: "have a great affection or liking for",
exemple: "She loves her boss and works hard for him",
class_: "verb"
},
{
def: "get pleasure from",
exemple: "I love cooking",
class_: "verb"
},
]
}