Are there any best practices for incorporating FNC3 characters into Code 128 barcodes in PHP?

When incorporating FNC3 characters into Code 128 barcodes in PHP, it is important to ensure that the FNC3 character is properly encoded using the appropriate ASCII value. One common practice is to use the ASCII value 232 for FNC3. This can be achieved by converting the ASCII value to its binary representation and including it in the barcode data.

// Function to encode FNC3 character (ASCII value 232) in binary
function encodeFNC3() {
    return decbin(232);
}

// Barcode data including FNC3 character
$barcodeData = "123456" . encodeFNC3() . "7890";

// Generate Code 128 barcode using the barcode data
// Add your code here to generate the barcode using a PHP library or tool