working on it ...

Filters

Explore Public Snippets

Sort by

Found 2 snippets

    public by raminhos  1812  1  6  0

    Just Trim

    function justtrim($string, $lenght){
      //$lenght = 22;
      $str_to_count = html_entity_decode($string);
      if (strlen($str_to_count) <= $lenght) {
        return $string;
      }
      $s2 = substr($str_to_count, 0, $lenght - 3);
      $s2 .= "..";
      return $s2;
    }

    public by raminhos  2348  0  5  0

    msg_success

    function msg_success($txt, $s){
    ?>
    <div class="space-<?=$s?>"></div>
    <div class="alert alert-success">
        <button type="button" class="close" data-dismiss="alert">
            <i class="icon-remove"></i>
        </button>
        <i class="icon-ok"></i> <strong>Sucesso!!! </strong> <?=$txt?>
    </div>
    <?
    }

    List Complete ( 2 snippets total )

    Cannot find what you were looking for?
    Ask the Snip2Code Community

    • Public Snippets
    • Channels Snippets