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

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

WBOY
Release: 2016-06-06 20:25:30
Original
1209 people have browsed it

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>
Copy after login

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

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template