开发者

Low Values - haven't got a clue in PHP

开发者 https://www.devze.com 2023-04-01 18:12 出处:网络
I\'m supposed to produce a string 15 characters of Low Values but don\'t have a clue what they are or how to produce them.

I'm supposed to produce a string 15 characters of Low Values but don't have a clue what they are or how to produce them.

I've seen a file which has a string of 15 characters of 开发者_如何学CLow Values followed by an 8 characters of date and it simply looked like 15 spaces.

I'm working in PHP and am guessing it's something to do with hex and started with something like this but it doesn't seem right:

for($ii=0; $ii<15; $ii++) 
{
     $strLowValues .= chr(dechex(0000));

        //or
        //$strLowValues .= chr(0);


}


print($strLowValues.date(Ymd));

Am basically, completely lost, and any help would be apprecaited!

Thanks


Your code makes absolutely no sense. $strLowValues is a string, which you're filling with nulls. You then try to treat it an object(?) to convert that null-filled string into a date string?

What is this code supposed to do?

I suggest you learn basic PHP syntax first.


The phrase "Low Values" has no inherent meaning in PHP.

Ask your professor what he wants.

0

精彩评论

暂无评论...
验证码 换一张
取 消