title: How to get the size of the content of a variable in PHP
body: <p>If I have the following variable in PHP:</p>
  
  <pre><code>$Message='Hello, this is just test message';
  </code></pre>
  
  <p>How can I get the size of its content in bytes? For instance, to print something like:</p>
  
  <pre><code>&lt;p&gt;Message size is 20KB&lt;/p&gt;
  </code></pre>