Overview

Namespaces

  • Kotchasan
    • Cache
    • Database
    • Http
    • Log
    • Orm
  • None
  • PDF
  • PHP
  • Psr
    • Cache
    • Http
      • Message
    • Log

Classes

  • Accordion
  • ArrayTool
  • CKEditor
  • Collection
  • Config
  • Controller
  • Country
  • Csv
  • Curl
  • Currency
  • Database
  • DataTable
  • Date
  • DOMNode
  • DOMParser
  • Email
  • File
  • Files
  • Form
  • Grid
  • Html
  • Htmldoc
  • HtmlTable
  • Image
  • InputItem
  • Inputs
  • KBase
  • Language
  • ListItem
  • Login
  • Menu
  • Mime
  • Model
  • Number
  • Object
  • Password
  • Pdf
  • Province
  • Router
  • Singleton
  • Tab
  • TableRow
  • Template
  • Text
  • Validator
  • View
  • Overview
  • Namespace
  • Class
  • Tree

Class DOMParser

คลาสสำหรับ การ Parse DOM.

Namespace: Kotchasan
Author: Goragod Wiriya admin@goragod.com
Since: 1.0
Located at Kotchasan/DOMParser.php
Methods summary
public
# __construct( string $html, string $charset = 'utf-8' )

class constructor.

class constructor.

Parameters

$html
HTML code
$charset
encoding default utf-8
public static static
# load( string $url )

parse HTML จาก URL.

parse HTML จาก URL.

Parameters

$url
URL ที่ต้องการ parse

Returns

static
public array
# nodes( )

คืนค่า node ทั้งหมด.

คืนค่า node ทั้งหมด.

Returns

array
public string
# toHTML( )

ส่งออกเป็นโค้ด HTML จากที่ parse แล้ว.

ส่งออกเป็นโค้ด HTML จากที่ parse แล้ว.

Returns

string
Properties summary
protected array $doms

รายการโหนด.

รายการโหนด.

# array()
kotchasan API documentation generated by ApiGen