Page::content()

Gets the page content.

Table of Contents
  1. Description
  2. Example

Description

Page::content(): ?string;

This method returns the page content as a string. If empty string is returned, this method returns null.

Example

$page = new Page('.\lot\page\article.page');

echo $page->content; // Returns `'Lorem ipsum dolor sit amet.'`

Page::content()

Gets the page content.

Page::size()

Gets the file sizes in human readable string format.