php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #34646 type comparison tables hard to read
Submitted: 2005-09-26 17:03 UTC Modified: 2005-09-27 11:57 UTC
From: Rick at Formex dot nl Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Rick at Formex dot nl
New email:
PHP Version: OS:

 

 [2005-09-26 17:03 UTC] Rick at Formex dot nl
Description:
------------
The type comparison tables are a bit hard to read, a bit of color would improve it a lot.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-26 17:21 UTC] Rick at Formex dot nl
Here is an example on how to solve this:
CSS:
.true{
	background-color:#cfc;
}

.false{
	background-color:#fcc;
}

HTML:
<table border="1" class="CALSTABLE">
  <thead>
    <tr>
      <th>==</th>
      <th><tt class="constant true"><b>TRUE</b></tt></th>
      <th><tt class="constant false"><b>FALSE</b></tt></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><tt class="constant true"><b>TRUE</b></tt></td>
      <td><tt class="constant true"><b>TRUE</b></tt></td>
      <td><tt class="constant false"><b>FALSE</b></tt></td>
    </tr>
    <tr>
      <td><tt class="constant false"><b>FALSE</b></tt></td>
      <td><tt class="constant false"><b>FALSE</b></tt></td>
      <td><tt class="constant true"><b>TRUE</b></tt></td>
    </tr>
  </tbody>
</table>
 [2005-09-26 17:27 UTC] Rick at Formex dot nl
I've just noticed that I've made a mistake in my last post, here's the right version:
HTML:
<table border="1" class="CALSTABLE">
  <thead>
    <tr>
      <th>==</th>
      <th><tt class="constant"><b>TRUE</b></tt></th>
      <th><tt class="constant"><b>FALSE</b></tt></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><tt class="constant"><b>TRUE</b></tt></td>
      <td class="true"><tt class="constant"><b>TRUE</b></tt></td>
      <td class="false"><tt class="constant"><b>FALSE</b></tt></td>
    </tr>
    <tr>
      <td><tt class="constant"><b>FALSE</b></tt></td>
      <td class="false"><tt class="constant"><b>FALSE</b></tt></td>
      <td class="true"><tt class="constant"><b>TRUE</b></tt></td>
    </tr>
  </tbody>
</table>
 [2005-09-27 11:57 UTC] vrana@php.net
We don't use colors in PHP manual.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 09:01:32 2025 UTC