def bool_to_str(boolean):
    """Convert ``boolean`` to string like PHP.

    :param boolean: boolean value
    :type boolean: bool
    :return: string representation
    :rtype: str
    """
    return '1' if boolean else ''
