php - Parse.com 的 API 文档中的这条 echo 语句应该做什么?

标签 php parse-platform

我正在使用 Parse.com 的 PHP API。在 their documentation ,它指出:

Retrieving File Contents

How to best retrieve the file contents back depends on the context of your application. It's best if you can make the visitors browser do the work for you. Typically, that means rendering the file's URL into your output. Here we output an uploaded profile photo in an image tag:

$profilePhoto = $profile->get("photoFile");

echo '![]()getURL() . '">'; // <------what the heck is this?

到底是什么echo '![]()getURL() . '">';应该怎么做?

这只是文档中的拼写错误吗?

当然他们的意思是echo '<img src="'.$profilePhoto->getURL() . '">'; ..对吗?

或者这是我不知道的一些奇怪的速记?

如果有人可以确认我没有遗漏任何内容,我会报告拼写错误以进行解析。

最佳答案

你是对的,这是一个错误。由于文档在 Github 上是可编辑的;您可以通过 editing this file 建议修复

关于php - Parse.com 的 API 文档中的这条 echo 语句应该做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33219201/

相关文章:

php - 找不到 Heroku 类 'NumberFormatter'

php - 为什么这些Heredoc和Nowdoc会出错呢?

javascript - 如何制作 Parse.Query.AND?

php - 如何从不同的表中选择实体?

javascript - AJAX 帖子上的异常行为

java - ConcurrentModifcationException 偶尔发生

ios - 来自 NSObject 的 PresentViewController?

ios - 使用 PFQuery 的结果作为 UIPageViewController 的数据源

php - [PHP]SQL 表从 session 变量中给出不正确的值

ios - App Transport Security 已阻止解析文件... Swift 2 错误