Overview

Packages

  • None
  • PHPShopAjaxElements
  • PHPShopAjaxElementsDepricated
  • PHPShopArray
  • PHPShopClass
    • Helper
  • PHPShopCore
  • PHPShopCoreDepricated
  • PHPShopCoreFunction
  • PHPShopDepricated
  • PHPShopElements
  • PHPShopElementsDepricated
  • PHPShopGUI
  • PHPShopInc
  • PHPShopObj
  • PHPShopParser
  • PHPShopShopCore
  • PHPShopTest

Classes

  • PHPShopDate
  • PHPShopMath
  • PHPShopSecurity
  • PHPShopString
  • PHPShopText
  • Overview
  • Package
  • Class
  • Tree

Class PHPShopString

Библиотека форматирования строк

Package: PHPShopClass\Helper
Author: PHPShop Software
Version: 2.1
Located at class/string.class.php
Methods summary
public static string
# check_idna( string $str, boolean $path = false )

Проверка IDNA

Проверка IDNA

Parameters

$str
имя домена
$path
запуск в админке

Returns

string
public static Bool
# is_serialized( string $data )

проверка сериализации в строке

проверка сериализации в строке

Parameters

$data

Returns

Bool
public static string
# json_safe_encode( string $var )

Кодировка Win 1251 в JSON формат

Кодировка Win 1251 в JSON формат

Parameters

$var

Returns

string
public static string
# win_utf8( string $in_text, boolean $utf_check = false )

Кодировка Win 1251 в UTF8

Кодировка Win 1251 в UTF8

Parameters

$in_text
текст
$utf_check
отключить проверку UTF

Returns

string
public static string
# utf8_win1251( string $s )

Кодирование utf8 в win1251

Кодирование utf8 в win1251

Parameters

$s
строка

Returns

string
public static string
# toLatin( string $str )

Перевод в латиницу

Перевод в латиницу

Parameters

$str

Returns

string
public static
# mySubstr( $str, $a, $add = "..." )
public static float
# toFloat( float $price, boolean $direct = false )

Форматирование цены для Excel

Форматирование цены для Excel

Parameters

$price
цена
$direct
обратная замена

Returns

float
public static
# getColor( $str )
public static string
# getBrowser( string $agent = false )

Определение версии браузера

Определение версии браузера

Parameters

$agent
HTTP_USER_AGENT

Returns

string
public static boolean
# is_mobile( )

Определение мобильного трафика

Определение мобильного трафика

Returns

boolean
PHPShop 6.X API documentation generated by ApiGen