What is the purpose of ob_start() ?

Author Topic: What is the purpose of ob_start() ?  (Read 717 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 159
  • Karma: 0
    • Hot Shaper
What is the purpose of ob_start() ?
« on: 03-22-2016, 04:43:51 »
OB_start() turn on the output buffer. While the buffer is on, no output is sent rather it is stored in the internal buffer. Inorder to get content from output Ob_get_content function can be used.


Offline TomClarke

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 18
  • Posts: 898
  • Karma: 0
  • Gender: Male
    • Custom Writing Service & Content Marketplace
Re: What is the purpose of ob_start() ?
« Reply #1 on: 05-16-2016, 00:58:52 »

Basically, ob_start() tells PHP to start  output buffering, meaningthta anything uoi output after ob_start() won't be sent to the browser until the end of the page or ob_end() is reached. 
Your ideas, our writings - Writology.com

 

Related Topics

  Subject / Started by Replies Last post
8 Replies
2476 Views
Last post 08-24-2016, 03:30:30
by TomClarke
1 Replies
2938 Views
Last post 08-16-2013, 11:47:05
by Patrecia
17 Replies
8905 Views
Last post 11-25-2016, 23:11:02
by pablohunt2812
3 Replies
1154 Views
Last post 11-28-2013, 01:18:05
by tomandjeny
15 Replies
3595 Views
Last post 11-28-2016, 03:36:11
by claysmithpc