Tag Archives: boolean

Convert a bool to a byte array and display

Example to convert a bool to a byte array and display: byte[] b = null; b = BitConverter.GetBytes(true); Console.WriteLine(BitConverter.ToString(b));

Posted in Language Basics | Tagged , , | Leave a comment

XML-RPC Boolean Data Type

Boolean is a primitive data type and can take true or false state. XML-RPC boolean is same as the PHP boolean. In XML-RPC, booleans can only be represented with 1 or 0 unlike PHP where boolean can be represented by … Continue reading

Posted in PHP XML | Tagged , , | Leave a comment

Rules for boolean data types in PHP

A number (either integer or floating-point) converted into a Boolean becomes false if the original value is zero, and true otherwise. A string is converted to false only if it is empty or if it contains the single character 0. … Continue reading

Posted in Language Basics | Tagged , | Leave a comment