Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Float_.php

function Float_::fromString

Parameters

mixed[] $attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Float_.php, line 29

Class

Float_

Namespace

PhpParser\Node\Scalar

Code

public static function fromString(string $str, array $attributes = []) : Float_ {
    $attributes['rawValue'] = $str;
    $float = self::parse($str);
    return new Float_($float, $attributes);
}
RSS feed
Powered by Drupal