Home >Backend Development >PHP Tutorial >avquery.class.leancloud php 如何实现模糊查询功能,求大神指点

avquery.class.leancloud php 如何实现模糊查询功能,求大神指点

WBOY
WBOYOriginal
2016-06-06 20:25:301211browse

leancloud php 如何实现模糊查询功能,求大神指点

回复内容:

leancloud php 如何实现模糊查询功能,求大神指点

在官方最新发布的 php-sdk 里,你可以通过 LeanQuery 来建立查询,如查找文章标题:

<code class="php">$query = new LeanQuery("Post");
$query->startsWith("title", "Hello");
$query->endsWith("title", "world");
$query->contains("title", "worl");
$query->find();</code>

参照这里:https://github.com/leancloud/php-sdk

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn