This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
<html><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"><title>Reading binary data from a file</title><linkrel="stylesheet"type="text/css"href="manual.css"><metaname="generator"content="DocBook XSL Stylesheets V1.76.0"><linkrel="home"href="index.html"title="JpGraph Manual"><linkrel="up"href="ch13.html"title="Chapter13.Getting hold of the data to be displayed"></head><bodybgcolor="white"text="black"link="#0000FF"vlink="#840084"alink="#0000FF"><divclass="navheader"><tablewidth="100%"summary="Navigation header"><tr><thcolspan="3"align="center">Reading binary data from a file</th></tr><tr><tdwidth="20%"align="left"></td><thwidth="60%"align="center">Chapter13.Getting hold of the data to be displayed</th><tdwidth="20%"align="right"></td></tr></table><hr></div><divclass="sect1"title="Reading binary data from a file"><divclass="titlepage"><div><div><h2class="title"style="clear: both"><aname="id2539067"></a>Reading binary data from a file</h2></div></div></div>
<p>This can be potentially dangerous since the exact format for the binary data can
differ depending on convention and system. The advantage is that it usually gives
smaller data files and is usually not as suspect to data corruption since it is not
easy to read directly into a text editor and change. In PHP a variable can be stored
in a binary format using the <codeclass="code">serialize()</code> function and read back from a
file with <codeclass="code">unserialize()</code></p>