What is the purpose of ob_start() ?

Author Topic: What is the purpose of ob_start() ?  (Read 880 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 44
  • Posts: 893
  • 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
2652 Views
Last post 08-24-2016, 03:30:30
by TomClarke
17 Replies
9770 Views
Last post 11-25-2016, 23:11:02
by pablohunt2812
3 Replies
1213 Views
Last post 11-28-2013, 01:18:05
by tomandjeny
16 Replies
4232 Views
Last post 05-25-2017, 03:24:28
by bidaddy
0 Replies
2062 Views
Last post 04-04-2017, 01:38:55
by beingchinmay