首页 WordPress函数大全 readonly()

readonly()

2020-05-02 / 4879阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

readonly( mixed $readonly, mixed $current = true, bool $echo = true )

输出html只读属性。

描述

比较前两个参数,如果相同则标记为只读

参数

$readonly

(mixed)
(Required)
One of the values to compare

$current

(mixed)
(Optional)
(true) The other value to compare if not just true

Default value: true

$echo

(bool)
(Optional)
Whether to echo or just return the string

Default value: true

返回

(string) html attribute or empty string

大家谈论
    我的见解