OutSCIRT

About
Documentation
Downloads

O__tagGet

Purpose: To get content between a set of tags in a file.

Type: Server-side function

Inputs:

  • $O__path: The path to the target file.
  • $O__tagOpen: The first instance of this opening tag.
  • $O__tagClose: The first instance of this closing tag that appears after the opening tag.
  • $O__tagInclude: Set to 1 if you'd like to include the tags. Otherwise, set to 0 to only include the contents between the tags.

Outputs: A string with the contents between or include the tags are returned.

Use Case: To get content between two tags.

Examples:

  • Placing the tag contents into a new variable: $theTagContents = O__tagGet("/path/to/the/file.txt","","",0);

Version Documented: 20200929