cnlinux
V2EX  ›  问与答

请教 similar() 这个怎么改

  •  
  •   cnlinux · Feb 13, 2023 via iPhone · 1365 views
    This topic created in 1270 days ago, the information mentioned may be changed or developed.
    if (similar_text($lastname,$firstname) >3) {

    $error=true;
    }
    如果想写成

    if (similar_text($lastname,$firstname,$percent) {

    $error=true
    }

    应该怎么改?
    Thx
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   935 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 20:00 · PVG 04:00 · LAX 13:00 · JFK 16:00
    ♥ Do have faith in what you're doing.